mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Use display name for chat events.
This commit is contained in:
parent
bfe8403d75
commit
8eee0cb0b0
@ -342,11 +342,11 @@ public class PlayerListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatManager.handlePartyChat(plugin, party, player.getName(), event.getMessage());
|
ChatManager.handlePartyChat(plugin, party, player.getDisplayName(), event.getMessage());
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
else if (profile.getAdminChatMode()) {
|
else if (profile.getAdminChatMode()) {
|
||||||
ChatManager.handleAdminChat(plugin, player.getName(), event.getMessage());
|
ChatManager.handleAdminChat(plugin, player.getDisplayName(), event.getMessage());
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user