Changes to the changes to the ChatAPI.

mcMMO will not pass null for any events that it creates about itself.
Older plugins which are using depricated methods in ChatAPI will be null.
Newer plugins passing null to ChatAPI will also be null.

Null guarantees that it is not from mcMMO, but from an external plugin that is not specified.
This commit is contained in:
NuclearW
2013-01-26 22:13:49 -05:00
parent 251c152efa
commit 7ccadae489
9 changed files with 10 additions and 31 deletions

View File

@ -31,10 +31,6 @@ public final class ChatManager {
}
}
public static void handleAdminChat(String playerName, String message) {
handleAdminChat(null, playerName, message);
}
public static void handlePartyChat(Plugin plugin, Party party, String playerName, String message) {
String partyName = party.getName();
@ -53,8 +49,4 @@ public final class ChatManager {
member.sendMessage(LocaleLoader.getString("Commands.Party.Chat.Prefix", new Object[] {playerName}) + partyMessage);
}
}
public static void handlePartyChat(Party party, String playerName, String message) {
handlePartyChat(null, party, playerName, message);
}
}