Internal: Added a few notes regarding the chat event handling for the naming of shopkeepers.

master
blablubbabc 2020-05-22 00:20:05 +02:00
parent 0532dff524
commit e457cbf285
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class ShopNamingListener implements Listener {
// SHOPKEEPER NAMING
// ignoreCancelled = false: We process the chat event in all cases (even if the player has been muted, etc.).
// Priority LOWEST: We intend to cancel the event as early as possible, so that other plugins can ignore it.
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
void onChat(AsyncPlayerChatEvent event) {
Player player = event.getPlayer();