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