From 66ea6211a287772f8543d7c933b1bc3fc73ef4c6 Mon Sep 17 00:00:00 2001 From: FeuSalamander Date: Mon, 13 Mar 2023 10:51:54 +0100 Subject: [PATCH] added the "all" option --- src/main/java/me/feusalamander/vmessage/Listeners.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/me/feusalamander/vmessage/Listeners.java b/src/main/java/me/feusalamander/vmessage/Listeners.java index a1dbd45..af9b4be 100644 --- a/src/main/java/me/feusalamander/vmessage/Listeners.java +++ b/src/main/java/me/feusalamander/vmessage/Listeners.java @@ -41,6 +41,9 @@ public final class Listeners { if (!configuration.isMessageEnabled()) { return; } + if(configuration.isAllEnabled()){ + e.setResult(PlayerChatEvent.ChatResult.message("")); + } message(e.getPlayer(), e.getMessage()); }