From 3c70f6ced9634af389bacfd24a56f119ef2a20a9 Mon Sep 17 00:00:00 2001 From: SrJss <31166687+jonagamerpro1234@users.noreply.github.com> Date: Sat, 7 Jan 2023 23:13:19 -0300 Subject: [PATCH] release v1.7.6 --- CustomJoinAndQuitMessagesOld/pom.xml | 2 +- .../json/{Json.java => MessageBuilder.java} | 12 ++-- .../listener/JoinListener.java | 56 ++++++++--------- .../manager/DisplayManager.java | 62 +++++++++---------- .../utils/GroupHelper.java | 56 ++++++++--------- 5 files changed, 94 insertions(+), 94 deletions(-) rename CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/{Json.java => MessageBuilder.java} (90%) diff --git a/CustomJoinAndQuitMessagesOld/pom.xml b/CustomJoinAndQuitMessagesOld/pom.xml index 2295bf8..1456b85 100644 --- a/CustomJoinAndQuitMessagesOld/pom.xml +++ b/CustomJoinAndQuitMessagesOld/pom.xml @@ -9,7 +9,7 @@ CustomJoinAndQuitMessagesOld - 1.7.6-beta.4 + 1.7.6-Release 11 diff --git a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/Json.java b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/MessageBuilder.java similarity index 90% rename from CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/Json.java rename to CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/MessageBuilder.java index 69cc6ef..b72bc25 100644 --- a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/Json.java +++ b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/json/MessageBuilder.java @@ -11,7 +11,7 @@ import java.util.List; -public class Json { +public class MessageBuilder { private final Player player; private final String text; @@ -20,7 +20,7 @@ public class Json { private String executeCommand; private String openUrl; - public Json(Player player, String text) { + public MessageBuilder(Player player, String text) { this.player = player; this.text = text; this.hoverText = null; @@ -34,7 +34,7 @@ public String getText() { return text; } - public Json setHover(@NotNull List hover) { + public MessageBuilder setHover(@NotNull List hover) { this.hoverText = new BaseComponent[hover.size()]; for (int i = 0; i < hover.size(); i++) { TextComponent component = new TextComponent(); @@ -48,17 +48,17 @@ public Json setHover(@NotNull List hover) { return this; } - public Json setSuggestCommand(String suggestCommand) { + public MessageBuilder setSuggestCommand(String suggestCommand) { this.suggestCommand = suggestCommand; return this; } - public Json setExecuteCommand(String executeCommand) { + public MessageBuilder setExecuteCommand(String executeCommand) { this.executeCommand = executeCommand; return this; } - public Json setOpenURL(String url) { + public MessageBuilder setOpenURL(String url) { this.openUrl = url; return this; } diff --git a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/listener/JoinListener.java b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/listener/JoinListener.java index 885944f..4ffb809 100644 --- a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/listener/JoinListener.java +++ b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/listener/JoinListener.java @@ -5,7 +5,7 @@ import github.scarsz.discordsrv.util.DiscordUtil; import jss.customjoinandquitmessages.CustomJoinAndQuitMessages; import jss.customjoinandquitmessages.hook.*; -import jss.customjoinandquitmessages.json.Json; +import jss.customjoinandquitmessages.json.MessageBuilder; import jss.customjoinandquitmessages.manager.HookManager; import jss.customjoinandquitmessages.manager.PlayerManager; import jss.customjoinandquitmessages.utils.*; @@ -113,10 +113,10 @@ public void onJoinListener(@NotNull PlayerJoinEvent e) { text = Util.color(Util.getVar(p, text)); - Json json = new Json(p, text); + MessageBuilder messageBuilder = new MessageBuilder(p, text); if (config.getBoolean("Config.Show-Chat-In-Console")) { - Logger.info(json.getText()); + Logger.info(messageBuilder.getText()); } if (isNormalType) { @@ -128,7 +128,7 @@ public void onJoinListener(@NotNull PlayerJoinEvent e) { DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (essentialsXDiscordHook.isEnabled()) { @@ -136,7 +136,7 @@ public void onJoinListener(@NotNull PlayerJoinEvent e) { return; essentialsXDiscordHook.sendJoinMessage(Settings.hook_essentialsDiscord_channelid, - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } } else if (isModifyType) { boolean isHover = Objects.equals(config.getString("Join.HoverEvent.Enabled"), "true"); @@ -168,34 +168,34 @@ public void onJoinListener(@NotNull PlayerJoinEvent e) { if (isClick) { assert isClick_Mode != null; if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.setHover(Hover_Text).sendToAll(); + messageBuilder.setHover(Hover_Text).sendToAll(); } } else { if (isClick) { assert isClick_Mode != null; if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).sendToAll(); + messageBuilder.setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.sendToAll(); + messageBuilder.sendToAll(); } } if (discordSRVHHook.isEnabled()) { DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (isTitle) { @@ -288,10 +288,10 @@ public void onQuit(@NotNull PlayerQuitEvent e) { text = Util.color(text); text = Util.getVar(p, text); - Json json = new Json(p, text); + MessageBuilder messageBuilder = new MessageBuilder(p, text); if (config.getBoolean("Config.Show-Chat-In-Console")) { - Logger.info(json.getText()); + Logger.info(messageBuilder.getText()); } if (isNormalType) { @@ -301,14 +301,14 @@ public void onQuit(@NotNull PlayerQuitEvent e) { return; DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (essentialsXDiscordHook.isEnabled()) { if (Settings.hook_essentialsDiscord_channelid.equalsIgnoreCase("none")) return; essentialsXDiscordHook.sendQuitMessage(Settings.hook_essentialsDiscord_channelid, - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } } else if (isModifyType) { @@ -332,27 +332,27 @@ public void onQuit(@NotNull PlayerQuitEvent e) { if (isClick) { assert isClick_Mode != null; if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.setHover(Hover_Text).sendToAll(); + messageBuilder.setHover(Hover_Text).sendToAll(); } } else { if (isClick) { assert isClick_Mode != null; if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).sendToAll(); + messageBuilder.setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.sendToAll(); + messageBuilder.sendToAll(); } } @@ -363,7 +363,7 @@ public void onQuit(@NotNull PlayerQuitEvent e) { DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (essentialsXDiscordHook.isEnabled()) { @@ -372,7 +372,7 @@ public void onQuit(@NotNull PlayerQuitEvent e) { return; essentialsXDiscordHook.sendQuitMessage(Settings.hook_essentialsDiscord_channelid, - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } try { diff --git a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/manager/DisplayManager.java b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/manager/DisplayManager.java index a6b1834..981990f 100644 --- a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/manager/DisplayManager.java +++ b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/manager/DisplayManager.java @@ -3,7 +3,7 @@ import com.cryptomorin.xseries.messages.ActionBar; import com.cryptomorin.xseries.messages.Titles; import jss.customjoinandquitmessages.CustomJoinAndQuitMessages; -import jss.customjoinandquitmessages.json.Json; +import jss.customjoinandquitmessages.json.MessageBuilder; import jss.customjoinandquitmessages.utils.Logger; import jss.customjoinandquitmessages.utils.Settings; import jss.customjoinandquitmessages.utils.Util; @@ -76,35 +76,35 @@ public void showFirstJoinMessage() { Action_Suggest = config.getString("Join.ClickEvent.Actions.Suggest-Command"); } - Json json = new Json(player, Util.color(Util.getVar(player, text))); + MessageBuilder messageBuilder = new MessageBuilder(player, Util.color(Util.getVar(player, text))); if (isNormalType) { - json.send(); + messageBuilder.send(); return; } else if (isModifyType) { if (isHover) { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).send(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).send(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).send(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).send(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).send(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).send(); } } else { - json.setHover(Hover_Text).send(); + messageBuilder.setHover(Hover_Text).send(); } } else { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).send(); + messageBuilder.setExecuteCommand(Action_Command).send(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).send(); + messageBuilder.setOpenURL(Action_Url).send(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).send(); + messageBuilder.setSuggestCommand(Action_Suggest).send(); } } else { - json.send(); + messageBuilder.send(); } } } @@ -155,35 +155,35 @@ public void showJoinMessage() { Action_Suggest = config.getString("Join.ClickEvent.Actions.Suggest-Command"); } - Json json = new Json(player, Util.color(Util.getVar(player, text))); + MessageBuilder messageBuilder = new MessageBuilder(player, Util.color(Util.getVar(player, text))); if (isNormalType) { - json.send(); + messageBuilder.send(); return; } else if (isModifyType) { if (isHover) { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).send(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).send(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).send(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).send(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).send(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).send(); } } else { - json.setHover(Hover_Text).send(); + messageBuilder.setHover(Hover_Text).send(); } } else { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).send(); + messageBuilder.setExecuteCommand(Action_Command).send(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).send(); + messageBuilder.setOpenURL(Action_Url).send(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).send(); + messageBuilder.setSuggestCommand(Action_Suggest).send(); } } else { - json.send(); + messageBuilder.send(); } } } @@ -234,35 +234,35 @@ public void showQuitMessage() { Action_Suggest = config.getString("Quit.ClickEvent.Actions.Suggest-Command"); } - Json json = new Json(player, Util.color(Util.getVar(player, text))); + MessageBuilder messageBuilder = new MessageBuilder(player, Util.color(Util.getVar(player, text))); if (isNormalType) { - json.send(); + messageBuilder.send(); return; } else if (isModifyType) { if (isHover) { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).send(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).send(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).send(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).send(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).send(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).send(); } } else { - json.setHover(Hover_Text).send(); + messageBuilder.setHover(Hover_Text).send(); } } else { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).send(); + messageBuilder.setExecuteCommand(Action_Command).send(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).send(); + messageBuilder.setOpenURL(Action_Url).send(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).send(); + messageBuilder.setSuggestCommand(Action_Suggest).send(); } } else { - json.send(); + messageBuilder.send(); } } } diff --git a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/utils/GroupHelper.java b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/utils/GroupHelper.java index c833af3..fe89f6b 100644 --- a/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/utils/GroupHelper.java +++ b/CustomJoinAndQuitMessagesOld/src/main/java/jss/customjoinandquitmessages/utils/GroupHelper.java @@ -5,7 +5,7 @@ import github.scarsz.discordsrv.util.DiscordUtil; import jss.customjoinandquitmessages.hook.DiscordSRVHHook; import jss.customjoinandquitmessages.hook.EssentialsXDiscordHook; -import jss.customjoinandquitmessages.json.Json; +import jss.customjoinandquitmessages.json.MessageBuilder; import jss.customjoinandquitmessages.manager.GroupManager; import org.bukkit.Bukkit; import org.bukkit.Location; @@ -62,10 +62,10 @@ public void onJoin(Player player, FileConfiguration config, PlayerJoinEvent play boolean isNormalType = groupManager.getType(group).equalsIgnoreCase("normal"); boolean isModifyType = groupManager.getType(group).equalsIgnoreCase("modify"); - Json json = new Json(player, temp); + MessageBuilder messageBuilder = new MessageBuilder(player, temp); if (config.getBoolean("Config.Show-Chat-In-Console")) { - Logger.info(json.getText()); + Logger.info(messageBuilder.getText()); } if (isNormalType) { @@ -77,7 +77,7 @@ public void onJoin(Player player, FileConfiguration config, PlayerJoinEvent play DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (essentialsXDiscordHook.isEnabled()) { @@ -85,7 +85,7 @@ public void onJoin(Player player, FileConfiguration config, PlayerJoinEvent play return; essentialsXDiscordHook.sendJoinMessage(Settings.hook_essentialsDiscord_channelid, - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } } else if (isModifyType) { @@ -116,33 +116,33 @@ public void onJoin(Player player, FileConfiguration config, PlayerJoinEvent play if (isHover) { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.setHover(Hover_Text).sendToAll(); + messageBuilder.setHover(Hover_Text).sendToAll(); } } else { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).sendToAll(); + messageBuilder.setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.sendToAll(); + messageBuilder.sendToAll(); } } if (discordSRVHHook.isEnabled()) { DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (isTitle) { @@ -181,9 +181,9 @@ public void onQuit(Player player, @NotNull FileConfiguration config, PlayerQuitE quit = Util.color(Util.getVar(player, quit)); - Json json = new Json(player, quit); + MessageBuilder messageBuilder = new MessageBuilder(player, quit); if (config.getBoolean("Config.Show-Chat-In-Console")) { - Logger.info(json.getText()); + Logger.info(messageBuilder.getText()); } if (isNormalType) { @@ -193,14 +193,14 @@ public void onQuit(Player player, @NotNull FileConfiguration config, PlayerQuitE return; DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (essentialsXDiscordHook.isEnabled()) { if (Settings.hook_essentialsDiscord_channelid.equalsIgnoreCase("none")) return; essentialsXDiscordHook.sendQuitMessage(Settings.hook_essentialsDiscord_channelid, - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } } else if (isModifyType) { @@ -223,26 +223,26 @@ public void onQuit(Player player, @NotNull FileConfiguration config, PlayerQuitE if (isHover) { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setHover(Hover_Text).setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); + messageBuilder.setHover(Hover_Text).setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setHover(Hover_Text).setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.setHover(Hover_Text).sendToAll(); + messageBuilder.setHover(Hover_Text).sendToAll(); } } else { if (isClick) { if (isClick_Mode.equalsIgnoreCase("command")) { - json.setExecuteCommand(Action_Command).sendToAll(); + messageBuilder.setExecuteCommand(Action_Command).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("url")) { - json.setOpenURL(Action_Url).sendToAll(); + messageBuilder.setOpenURL(Action_Url).sendToAll(); } else if (isClick_Mode.equalsIgnoreCase("suggest")) { - json.setSuggestCommand(Action_Suggest).sendToAll(); + messageBuilder.setSuggestCommand(Action_Suggest).sendToAll(); } } else { - json.sendToAll(); + messageBuilder.sendToAll(); } } @@ -253,7 +253,7 @@ public void onQuit(Player player, @NotNull FileConfiguration config, PlayerQuitE DiscordUtil.sendMessageBlocking( DiscordUtil.getTextChannelById(Settings.hook_discordsrv_channelid), - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } if (essentialsXDiscordHook.isEnabled()) { @@ -262,7 +262,7 @@ public void onQuit(Player player, @NotNull FileConfiguration config, PlayerQuitE return; essentialsXDiscordHook.sendQuitMessage(Settings.hook_essentialsDiscord_channelid, - Util.colorless(json.getText())); + Util.colorless(messageBuilder.getText())); } try {