mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user