From a0471e63f60c3100de97f05b6d7aeb8868ae2a61 Mon Sep 17 00:00:00 2001 From: Deauthorized <49701242+Deauthorized@users.noreply.github.com> Date: Thu, 2 May 2024 17:42:33 -0400 Subject: [PATCH] Update WorldListener.java --- .../src/main/java/dev/plex/listener/impl/WorldListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/dev/plex/listener/impl/WorldListener.java b/server/src/main/java/dev/plex/listener/impl/WorldListener.java index e789568..49982df 100644 --- a/server/src/main/java/dev/plex/listener/impl/WorldListener.java +++ b/server/src/main/java/dev/plex/listener/impl/WorldListener.java @@ -112,7 +112,8 @@ public class WorldListener extends PlexListener boolean isFaweCommand = command instanceof PluginIdentifiableCommand && ((PluginIdentifiableCommand) command).getPlugin().equals(Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit")); if (isWeCommand || isFaweCommand || EDIT_COMMANDS.contains(message.toLowerCase())) { - event.getPlayer().sendMessage(Component.text("You do not have permission to use that command in this world.").color(NamedTextColor.RED)); + String noEdit = plugin.config.getString("worlds." + event.getPlayer().getWorld().getName().toLowerCase() + ".modification.message"); + event.getPlayer().sendMessage(MiniMessage.miniMessage().deserialize(noEdit)); event.setCancelled(true); } } @@ -183,4 +184,4 @@ public class WorldListener extends PlexListener } return false; } -} \ No newline at end of file +}