From 2ce1a3d1d33e73c25a2c28caeeea4c6ed1a548fa Mon Sep 17 00:00:00 2001 From: speed <43330808+speedxx@users.noreply.github.com> Date: Sat, 18 Jul 2020 13:56:13 -0400 Subject: [PATCH] remove aw guest from tab complete & fix the description --- .../totalfreedommod/command/Command_adminworld.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adminworld.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adminworld.java index abbd9709..46cc1798 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adminworld.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adminworld.java @@ -4,7 +4,6 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; import me.totalfreedom.totalfreedommod.rank.Rank; -import me.totalfreedom.totalfreedommod.util.FUtil; import me.totalfreedom.totalfreedommod.world.WorldTime; import me.totalfreedom.totalfreedommod.world.WorldWeather; import org.bukkit.World; @@ -13,7 +12,7 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; @CommandPermissions(level = Rank.OP, source = SourceType.BOTH) -@CommandParameters(description = "Allows for admins to configure guests, time, and weather of the AdminWorld, and allows for admins and guests to go to the AdminWorld.", +@CommandParameters(description = "Allows for admins to configure time, and weather of the AdminWorld, and allows for admins and ops to go to the AdminWorld.", usage = "/ [time | weather ]", aliases = "aw") public class Command_adminworld extends FreedomCommand @@ -184,15 +183,11 @@ public class Command_adminworld extends FreedomCommand } if (args.length == 1) { - return Arrays.asList("guest", "time", "weather"); + return Arrays.asList("time", "weather"); } else if (args.length == 2) { - if (args[0].equals("guest")) - { - return Arrays.asList("add", "remove", "list", "purge"); - } - else if (args[0].equals("time")) + if (args[0].equals("time")) { return Arrays.asList("morning", "noon", "evening", "night"); } @@ -203,5 +198,4 @@ public class Command_adminworld extends FreedomCommand } return Collections.emptyList(); } - }