(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:25:01 -06:00
parent a5bb25eb44
commit fd44983ae2
5 changed files with 190 additions and 197 deletions

View File

@ -5,7 +5,6 @@ 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;
@ -239,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);
}
}