From 418b1a60c36309551d42c563aaff670b54dbd204 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 6 Jun 2020 10:32:01 +0200 Subject: [PATCH] Remove bad option "use-only-commands-without-args" --- .../java/me/filoghost/chestcommands/config/Settings.java | 1 - .../me/filoghost/chestcommands/listener/CommandListener.java | 5 ----- 2 files changed, 6 deletions(-) diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/config/Settings.java b/Plugin/src/main/java/me/filoghost/chestcommands/config/Settings.java index 6cf629a..4f9be98 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/config/Settings.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/config/Settings.java @@ -25,7 +25,6 @@ public class Settings extends SpecialConfig { public String multiple_commands_separator = ";"; public boolean update_notifications = true; public int anti_click_spam_delay = 200; - public boolean use_only_commands_without_args = true; public Settings(PluginConfig config) { super(config); diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/listener/CommandListener.java b/Plugin/src/main/java/me/filoghost/chestcommands/listener/CommandListener.java index 425c977..9e8dd37 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/listener/CommandListener.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/listener/CommandListener.java @@ -27,11 +27,6 @@ public class CommandListener implements Listener { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onCommand(PlayerCommandPreprocessEvent event) { - - if (ChestCommands.getSettings().use_only_commands_without_args && event.getMessage().contains(" ")) { - return; - } - // Very fast method compared to split & substring String command = StringUtils.getCleanCommand(event.getMessage());