mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-26 10:44: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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user