Skip to content

Commit

Permalink
remove historical /notable command
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 13, 2020
1 parent 01bd08e commit 789b2ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
Expand Up @@ -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;
Expand All @@ -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;

Expand All @@ -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
Expand Down Expand Up @@ -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());
}
}
6 changes: 0 additions & 6 deletions plugin/src/main/resources/plugin.yml
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 789b2ad

Please sign in to comment.