Skip to content

Commit

Permalink
Change event priority to LOW
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 9, 2021
1 parent 318025b commit 6537b90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/world/bentobox/chat/listeners/ChatListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ChatListener(Chat addon) {
islandSpies = new HashSet<>();
}

@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onChat(final AsyncPlayerChatEvent e) {
Player p = e.getPlayer();
World w = e.getPlayer().getWorld();
Expand Down Expand Up @@ -77,15 +77,15 @@ public void onChat(final AsyncPlayerChatEvent e) {
}

// Removes player from TeamChat set if he left the island
@EventHandler
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onLeave(TeamLeaveEvent e) {

if (teamChatUsers.contains(e.getPlayerUUID()))
teamChatUsers.remove(e.getPlayerUUID());
}

// Removes player from TeamChat set if he was kicked from the island
@EventHandler
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onKick(TeamKickEvent e) {

if (teamChatUsers.contains(e.getPlayerUUID()))
Expand Down

0 comments on commit 6537b90

Please sign in to comment.