From bc6302b4064a8f58207d2234032c9c66523e6cfb Mon Sep 17 00:00:00 2001 From: FeuSalamander Date: Fri, 17 Mar 2023 19:31:48 +0100 Subject: [PATCH] updated velocity api, fixed message remover --- pom.xml | 2 +- src/main/java/me/feusalamander/vmessage/Listeners.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9ec0e9d..588e236 100644 --- a/pom.xml +++ b/pom.xml @@ -157,7 +157,7 @@ com.velocitypowered velocity-api - 3.1.2-SNAPSHOT + 3.2.0-SNAPSHOT provided diff --git a/src/main/java/me/feusalamander/vmessage/Listeners.java b/src/main/java/me/feusalamander/vmessage/Listeners.java index f56e694..5b1a47e 100644 --- a/src/main/java/me/feusalamander/vmessage/Listeners.java +++ b/src/main/java/me/feusalamander/vmessage/Listeners.java @@ -8,6 +8,8 @@ import com.velocitypowered.api.proxy.Player; import com.velocitypowered.api.proxy.ProxyServer; import com.velocitypowered.api.proxy.ServerConnection; import com.velocitypowered.api.proxy.server.RegisteredServer; +import net.kyori.adventure.chat.ChatType; +import net.kyori.adventure.chat.SignedMessage; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.minimessage.MiniMessage; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; @@ -42,7 +44,7 @@ public final class Listeners { return; } if(configuration.isAllEnabled()){ - e.setResult(PlayerChatEvent.ChatResult.message("")); + e.setResult(PlayerChatEvent.ChatResult.denied()); } message(e.getPlayer(), e.getMessage()); }