mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 19:15:44 +00:00
Merge pull request #16 from Brettflan/master
Fix for local chat, leftover Factions cleanup
This commit is contained in:
commit
b8e41df0f6
4 changed files with 3 additions and 6 deletions
|
@ -27,13 +27,11 @@ dist.javadoc.dir=${dist.dir}/javadoc
|
||||||
endorsed.classpath=
|
endorsed.classpath=
|
||||||
excludes=
|
excludes=
|
||||||
file.reference.bukkit-0.0.1-SNAPSHOT.jar=../lib/bukkit-0.0.1-SNAPSHOT.jar
|
file.reference.bukkit-0.0.1-SNAPSHOT.jar=../lib/bukkit-0.0.1-SNAPSHOT.jar
|
||||||
file.reference.Factions.jar=../lib/Factions.jar
|
|
||||||
includes=**
|
includes=**
|
||||||
jar.compress=false
|
jar.compress=false
|
||||||
javac.classpath=\
|
javac.classpath=\
|
||||||
${reference.Essentials.jar}:\
|
${reference.Essentials.jar}:\
|
||||||
${file.reference.bukkit-0.0.1-SNAPSHOT.jar}:\
|
${file.reference.bukkit-0.0.1-SNAPSHOT.jar}
|
||||||
${file.reference.Factions.jar}
|
|
||||||
# Space-separated list of extra javac options
|
# Space-separated list of extra javac options
|
||||||
javac.compilerargs=
|
javac.compilerargs=
|
||||||
javac.deprecation=false
|
javac.deprecation=false
|
||||||
|
|
|
@ -22,8 +22,7 @@ public class EssentialsChat extends JavaPlugin
|
||||||
final PluginManager pluginManager = getServer().getPluginManager();
|
final PluginManager pluginManager = getServer().getPluginManager();
|
||||||
final IEssentials ess = (IEssentials)pluginManager.getPlugin("Essentials");
|
final IEssentials ess = (IEssentials)pluginManager.getPlugin("Essentials");
|
||||||
|
|
||||||
chatListener = new HashMap<String, IEssentialsChatListener>();
|
chatListener = new HashMap<String, IEssentialsChatListener>();
|
||||||
//EssentialsChatPlayerListener.checkFactions(pluginManager);
|
|
||||||
|
|
||||||
final EssentialsChatPlayerListener playerListener = new EssentialsChatPlayerListener(getServer(), ess, chatListener);
|
final EssentialsChatPlayerListener playerListener = new EssentialsChatPlayerListener(getServer(), ess, chatListener);
|
||||||
pluginManager.registerEvent(Type.PLAYER_CHAT, playerListener, Priority.Highest, this);
|
pluginManager.registerEvent(Type.PLAYER_CHAT, playerListener, Priority.Highest, this);
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class EssentialsChatPlayerListener extends PlayerListener
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (u.equals(user) && !u.isAuthorized("essentials.chat.spy"))
|
if (!u.equals(user) && !u.isAuthorized("essentials.chat.spy"))
|
||||||
{
|
{
|
||||||
final Location l = u.getLocation();
|
final Location l = u.getLocation();
|
||||||
final int dx = Math.abs(x - l.getBlockX());
|
final int dx = Math.abs(x - l.getBlockX());
|
||||||
|
|
BIN
lib/Factions.jar
BIN
lib/Factions.jar
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue