Remove bad option "use-only-commands-without-args"

This commit is contained in:
filoghost 2020-06-06 10:32:01 +02:00
parent ae37d54d10
commit 418b1a60c3
2 changed files with 0 additions and 6 deletions

View File

@ -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);

View File

@ -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());