From 789b2adcd3bc9236df04d8bb346ac241b6230b48 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Sun, 12 Jul 2020 22:33:28 -0700 Subject: [PATCH] remove historical /notable command --- .../command/DenizenCommandHandler.java | 27 ------------------- plugin/src/main/resources/plugin.yml | 6 ----- 2 files changed, 33 deletions(-) diff --git a/plugin/src/main/java/com/denizenscript/denizen/utilities/command/DenizenCommandHandler.java b/plugin/src/main/java/com/denizenscript/denizen/utilities/command/DenizenCommandHandler.java index 46c557775d..19076f86c2 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/utilities/command/DenizenCommandHandler.java +++ b/plugin/src/main/java/com/denizenscript/denizen/utilities/command/DenizenCommandHandler.java @@ -2,8 +2,6 @@ import com.denizenscript.denizen.Denizen; import com.denizenscript.denizen.nms.NMSHandler; -import com.denizenscript.denizen.objects.LocationTag; -import com.denizenscript.denizen.objects.notable.NotableManager; import com.denizenscript.denizen.utilities.DenizenAPI; import com.denizenscript.denizen.utilities.command.manager.Command; import com.denizenscript.denizen.utilities.command.manager.CommandContext; @@ -17,7 +15,6 @@ import com.denizenscript.denizencore.scripts.containers.ScriptContainer; import com.denizenscript.denizencore.utilities.debugging.FutureWarning; import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; import java.util.Set; @@ -36,8 +33,6 @@ public DenizenCommandHandler(Denizen denizen) { // The following is a list of all permission nodes Denizen uses within Bukkit. // // denizen.basic # use the basics of the /denizen command - // denizen.notable # use the /notable command - // denizen.notable.basic # functionality within the /notable command, such as add or list // denizen.ex # use the /ex command // denizen.debug # use the /denizen debug command // denizen.submit # use the /denizen submit command @@ -384,26 +379,4 @@ else if (filter != null) { throw new CommandException("The page " + args.getInteger(1, 1) + " does not exist."); } } - - @Command( - aliases = {"notable"}, usage = "add", - desc = "Adds a new notable to your current location", modifiers = {"add", "save"}, - // Even though different arguments will be combined into one - // if they are delimited by quotes, their max number is checked - // before that, so it needs to be high - min = 2, max = 20, permission = "denizen.notable.basic") - public void addnotable(CommandContext args, CommandSender sender) throws CommandException { - - NotableManager.saveAs(new LocationTag(((Player) sender).getLocation()), args.getString(1)); - Messaging.send(sender, "Created new notable called " + (args.getString(1))); - } - - @Command( - aliases = {"notable"}, usage = "list", - desc = "Lists all notable locations", modifiers = {"list"}, - min = 1, max = 1, permission = "denizen.notable.basic") - public void listnotable(CommandContext args, CommandSender sender) throws CommandException { - - Messaging.send(sender, NotableManager.getAllType(LocationTag.class).toString()); - } } diff --git a/plugin/src/main/resources/plugin.yml b/plugin/src/main/resources/plugin.yml index 2cb39170a3..b1581131e4 100644 --- a/plugin/src/main/resources/plugin.yml +++ b/plugin/src/main/resources/plugin.yml @@ -11,10 +11,6 @@ commands: description: Lists denizen commands. usage: /denizen help permission: denizen.basic - notable: - description: Lists notable commands. - usage: /notable help - permission: denizen.notable ex: description: Executes a dScript command. usage: Use /ex in front of a normal script entry. @@ -26,8 +22,6 @@ permissions: default: op children: denizen.basic: true - denizen.notable: true - denizen.notable.basic: true denizen.dscript: true denizen.ex: true denizen.debug: true