Removed redundant configuration values and made use of customizable join/quit messages.

This commit is contained in:
FrozenCow 2011-04-05 22:30:43 +02:00
parent d4a2d2d32f
commit e1e13df4b2
5 changed files with 14 additions and 26 deletions

View file

@ -235,7 +235,7 @@ public class DynmapPlugin extends JavaPlugin {
}
// To announce when players have joined/quit/chatted.
if (configuration.getNode("web").getBoolean("showchatballoons", false) || configuration.getNode("web").getBoolean("showchatwindow", false)) {
if (configuration.getNode("web").getBoolean("allowchat", false)) {
// To handle webchat.
PlayerListener playerListener = new DynmapPlayerChatListener(this);
//getServer().getPluginManager().registerEvent(Event.Type.PLAYER_COMMAND, playerListener, Priority.Normal, this);