mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Cancel plot chat if message event is cancelled to allow for swear block/etc
This commit is contained in:
@ -86,6 +86,9 @@ public class MainListener {
|
||||
@Listener
|
||||
public void onChat(MessageEvent event) {
|
||||
// TODO
|
||||
if (event.isMessageCancelled())
|
||||
return;
|
||||
|
||||
Player player = SpongeUtil.getCause(event.getCause(), Player.class);
|
||||
if (player == null) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user