From 9998392b1abb81e5a3b53d84436ff3882fd90a42 Mon Sep 17 00:00:00 2001 From: Video Date: Fri, 4 Nov 2022 21:30:28 -0600 Subject: [PATCH] Fixes FS-343 --- .../totalfreedommod/command/Command_plugincontrol.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_plugincontrol.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_plugincontrol.java index 1dbc5579..7234452d 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_plugincontrol.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_plugincontrol.java @@ -143,12 +143,9 @@ public class Command_plugincontrol extends FreedomCommand { return Arrays.asList("enable", "disable", "reload", "list"); } - else if (args.length == 2) + else if (args.length == 2 && !args[0].equalsIgnoreCase("list")) { - if (!args[0].equals("list")) - { - return getAllPluginNames(); - } + return getAllPluginNames(); } return Collections.emptyList();