Handle cancelled chat events properly
This commit is contained in:
parent
dd0f0c7128
commit
9b31f30f14
1 changed files with 2 additions and 0 deletions
|
|
@ -272,6 +272,8 @@ public class BukkitEventProcessor {
|
|||
|
||||
@Override
|
||||
public void onPlayerChat(PlayerChatEvent event) {
|
||||
if(event.isCancelled())
|
||||
return;
|
||||
/* Call listeners */
|
||||
List<Listener> ll = event_handlers.get(event.getType());
|
||||
if(ll != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue