Use display name for chat events.

This commit is contained in:
GJ 2013-01-30 12:25:31 -05:00
parent bfe8403d75
commit 8eee0cb0b0

View File

@ -342,11 +342,11 @@ public class PlayerListener implements Listener {
return;
}
ChatManager.handlePartyChat(plugin, party, player.getName(), event.getMessage());
ChatManager.handlePartyChat(plugin, party, player.getDisplayName(), event.getMessage());
event.setCancelled(true);
}
else if (profile.getAdminChatMode()) {
ChatManager.handleAdminChat(plugin, player.getName(), event.getMessage());
ChatManager.handleAdminChat(plugin, player.getDisplayName(), event.getMessage());
event.setCancelled(true);
}
}