(donington) Consolidated chat event listeners into a single chat listener class.

(Brettflan) Fixed slashless commands not being logged if player was in faction chat or alliance chat mode. Also cleaned up chat code a bit, nothing major.
This commit is contained in:
Brettflan
2012-03-09 21:24:58 -06:00
parent d7f5ee581e
commit fbfdf8fe23
5 changed files with 190 additions and 203 deletions

View File

@@ -5,13 +5,9 @@ import java.lang.reflect.Type;
import java.util.*;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.event.Event;
import org.bukkit.event.Listener;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import com.google.gson.Gson;
@@ -242,6 +238,6 @@ public abstract class MPlugin extends JavaPlugin
public void log(Level level, Object msg)
{
Logger.getLogger("Minecraft").log(level, "["+this.getDescription().getFullName()+"] "+msg);
Bukkit.getLogger().log(level, "["+this.getDescription().getFullName()+"] "+msg);
}
}