From e5e360020609ad43044f18fddbb96787adb71fe3 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 20 Jun 2016 18:52:00 +1000 Subject: [PATCH] Why were these restricted to players? --- .../main/java/com/intellectualcrafters/plot/commands/Add.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Claim.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Deny.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Done.java | 2 +- .../java/com/intellectualcrafters/plot/commands/Download.java | 2 +- .../java/com/intellectualcrafters/plot/commands/FlagCmd.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Kick.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Merge.java | 2 +- .../java/com/intellectualcrafters/plot/commands/Middle.java | 2 +- .../java/com/intellectualcrafters/plot/commands/Remove.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Trust.java | 2 +- .../main/java/com/intellectualcrafters/plot/commands/Visit.java | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Add.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Add.java index 94f9089ce..e3ab2f428 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Add.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Add.java @@ -23,7 +23,7 @@ import java.util.UUID; usage = "/plot add ", category = CommandCategory.SETTINGS, permission = "plots.add", - requiredType = RequiredType.PLAYER) + requiredType = RequiredType.NONE) public class Add extends Command { public Add() { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Claim.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Claim.java index 301ae171d..39cafeca1 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Claim.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Claim.java @@ -16,7 +16,7 @@ import com.plotsquared.general.commands.CommandDeclaration; aliases = "c", description = "Claim the current plot you're standing on", category = CommandCategory.CLAIMING, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, permission = "plots.claim", usage = "/plot claim") public class Claim extends SubCommand { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Deny.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Deny.java index b58b44f1d..713064743 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Deny.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Deny.java @@ -23,7 +23,7 @@ import java.util.UUID; description = "Deny a user from a plot", usage = "/plot deny ", category = CommandCategory.SETTINGS, - requiredType = RequiredType.PLAYER) + requiredType = RequiredType.NONE) public class Deny extends SubCommand { public Deny() { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Done.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Done.java index 1447a644c..6399b1327 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Done.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Done.java @@ -19,7 +19,7 @@ import com.plotsquared.general.commands.CommandDeclaration; description = "Mark a plot as done", permission = "plots.done", category = CommandCategory.SETTINGS, - requiredType = RequiredType.PLAYER) + requiredType = RequiredType.NONE) public class Done extends SubCommand { @Override diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java index b63428ce3..a79500751 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java @@ -22,7 +22,7 @@ import java.net.URL; command = "download", aliases = {"dl"}, category = CommandCategory.SCHEMATIC, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, description = "Download your plot", permission = "plots.download") public class Download extends SubCommand { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java index 2145ebd25..a75cbff63 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java @@ -28,7 +28,7 @@ import java.util.Map; usage = "/plot flag ", description = "Set plot flags", category = CommandCategory.SETTINGS, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, permission = "plots.flag") public class FlagCmd extends SubCommand { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Kick.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Kick.java index 3f86017f0..57743d03c 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Kick.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Kick.java @@ -22,7 +22,7 @@ import java.util.UUID; permission = "plots.kick", usage = "", category = CommandCategory.TELEPORT, - requiredType = RequiredType.PLAYER) + requiredType = RequiredType.NONE) public class Kick extends SubCommand { public Kick() { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Merge.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Merge.java index 7bc1fec8e..bf0f2cb67 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Merge.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Merge.java @@ -22,7 +22,7 @@ import java.util.UUID; description = "Merge the plot you are standing on, with another plot", permission = "plots.merge", usage = "/plot merge [removeroads]", category = CommandCategory.SETTINGS, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, confirmation = true) public class Merge extends SubCommand { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Middle.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Middle.java index 771b249cc..ae0cd3e61 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Middle.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Middle.java @@ -17,7 +17,7 @@ import com.plotsquared.general.commands.CommandDeclaration; description = "Teleports you to the center of the current plot", usage = "/plot middle", category = CommandCategory.TELEPORT, - requiredType = RequiredType.PLAYER) + requiredType = RequiredType.NONE) public class Middle extends SubCommand { @Override diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java index dc1d7bcdb..b1ad27bf3 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java @@ -22,7 +22,7 @@ import java.util.UUID; description = "Remove a player from a plot", usage = "/plot remove ", category = CommandCategory.SETTINGS, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, permission = "plots.remove") public class Remove extends SubCommand { diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Trust.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Trust.java index 75fead9b0..a0ff0a0a1 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Trust.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Trust.java @@ -19,7 +19,7 @@ import java.util.UUID; @CommandDeclaration( command = "trust", aliases = {"t"}, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, usage = "/plot trust ", description = "Allow a player to build in a plot", category = CommandCategory.SETTINGS) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java index ccc04ab5d..319407f4f 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java @@ -22,7 +22,7 @@ import java.util.UUID; description = "Visit someones plot", usage = "/plot visit [player|alias|world|id] [#]", aliases = {"v", "tp", "teleport", "goto", "home", "h"}, - requiredType = RequiredType.PLAYER, + requiredType = RequiredType.NONE, category = CommandCategory.TELEPORT) public class Visit extends SubCommand {