New Setting

This commit is contained in:
RayzsYT committed 2024-05-16 21:45:44 +02:00
1 parent 3531e2111a
commit cd176b02b4
3 files changed
+3

No files matched your search

@@ -33,6 +33,7 @@ public class BukkitBlockCommandListener implements Listener {
if(Storage.isPluginsCommand(command) && Storage.USE_CUSTOM_PLUGINS && !PermissionUtil.hasBypassPermission(player, command)) {
for (String line : Storage.CUSTOM_PLUGINS) MessageTranslator.send(player, line.replace("%command%", rawCommand.replaceFirst("/", "")));
event.setCancelled(true);
return;
}
@@ -27,6 +27,7 @@ public class BungeeBlockCommandListener implements Listener {
if(Storage.isPluginsCommand(command) && Storage.USE_CUSTOM_PLUGINS && !PermissionUtil.hasBypassPermission(player, command)) {
for (String line : Storage.CUSTOM_PLUGINS) MessageTranslator.send(player, line.replace("%command%", rawCommand.replaceFirst("/", "")));
event.setCancelled(true);
return;
}
@@ -30,6 +30,7 @@ public class VelocityBlockCommandListener {
if(Storage.isPluginsCommand(command) && Storage.USE_CUSTOM_PLUGINS && !PermissionUtil.hasBypassPermission(player, command)) {
for (String line : Storage.CUSTOM_PLUGINS) MessageTranslator.send(player, line.replace("%command%", command.replaceFirst("/", "")));
event.setResult(CommandExecuteEvent.CommandResult.denied());
return;
}