mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fixed party & admin chat errors when not aysnc
This commit is contained in:
parent
630c3e81e6
commit
b74f6e92dc
@ -23,6 +23,7 @@ Version 1.4.05-dev
|
|||||||
= Fixed potion buff option not using the appropriate # of ticks
|
= Fixed potion buff option not using the appropriate # of ticks
|
||||||
= Fixed Chimera Wing spamming console if Metrics was disabled
|
= Fixed Chimera Wing spamming console if Metrics was disabled
|
||||||
= Fixed Chimera Wing displaying warmup message if warmup was set to 0
|
= Fixed Chimera Wing displaying warmup message if warmup was set to 0
|
||||||
|
= Fixed party & admin chat errors when not aysnc
|
||||||
|
|
||||||
Version 1.4.04
|
Version 1.4.04
|
||||||
+ Added functions to ExperienceAPI for use with offline players
|
+ Added functions to ExperienceAPI for use with offline players
|
||||||
|
@ -441,6 +441,7 @@ public class PlayerListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean isAsync = event.isAsynchronous();
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
|
|
||||||
if (mcMMOPlayer.getPartyChatMode()) {
|
if (mcMMOPlayer.getPartyChatMode()) {
|
||||||
@ -451,11 +452,11 @@ public class PlayerListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatManager.handlePartyChat(plugin, party, player.getName(), player.getDisplayName(), event.getMessage(), true);
|
ChatManager.handlePartyChat(plugin, party, player.getName(), player.getDisplayName(), event.getMessage(), isAsync);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
else if (mcMMOPlayer.getAdminChatMode()) {
|
else if (mcMMOPlayer.getAdminChatMode()) {
|
||||||
ChatManager.handleAdminChat(plugin, player.getName(), player.getDisplayName(), event.getMessage(), true);
|
ChatManager.handleAdminChat(plugin, player.getName(), player.getDisplayName(), event.getMessage(), isAsync);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user