Slight change to ChatAPI implementation

This commit is contained in:
NuclearW 2013-03-26 01:54:47 -04:00
parent 94b560ba01
commit 16a4b78580

View File

@ -73,7 +73,7 @@ public final class ChatAPI {
* @return true if the player is using party chat, false otherwise
*/
public static boolean isUsingPartyChat(Player player) {
return UserManager.getPlayer(player).getPartyChatMode();
return isUsingPartyChat(player.getName());
}
/**
@ -93,7 +93,7 @@ public final class ChatAPI {
* @return true if the player is using admin chat, false otherwise
*/
public static boolean isUsingAdminChat(Player player) {
return UserManager.getPlayer(player).getAdminChatMode();
return isUsingAdminChat(player.getName());
}
/**