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

@ -35,7 +35,7 @@ public final class ChatAPI {
*/
@Deprecated
public static void sendPartyChat(String sender, String party, String message) {
ChatManager.handlePartyChat(PartyManager.getParty(party), sender, message);
sendPartyChat(null, party, sender, message);
}
/**
@ -63,6 +63,6 @@ public final class ChatAPI {
*/
@Deprecated
public static void sendAdminChat(String sender, String message) {
ChatManager.handleAdminChat(sender, message);
sendAdminChat(null, sender, message);
}
}