mirror of
https://github.com/filoghost/ChestCommands.git
synced 2025-02-16 19:41:47 +01:00
Remove bad option "use-only-commands-without-args"
This commit is contained in:
parent
ae37d54d10
commit
418b1a60c3
@ -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);
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user