From 429fed2ab338469b182afd3c4c54bc18febd28a9 Mon Sep 17 00:00:00 2001 From: manuelgu Date: Wed, 30 Mar 2016 14:43:04 +0200 Subject: [PATCH] Fix target command Threw an exception when you didnt pass an argument --- .../java/com/intellectualcrafters/plot/commands/Target.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Target.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Target.java index acb47aa16..17e4214f4 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Target.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Target.java @@ -7,6 +7,7 @@ import com.intellectualcrafters.plot.object.Plot; import com.intellectualcrafters.plot.object.PlotPlayer; import com.intellectualcrafters.plot.util.MainUtil; import com.intellectualcrafters.plot.util.StringMan; +import com.plotsquared.general.commands.Argument; import com.plotsquared.general.commands.CommandDeclaration; @CommandDeclaration( @@ -18,6 +19,10 @@ import com.plotsquared.general.commands.CommandDeclaration; category = CommandCategory.INFO) public class Target extends SubCommand { + public Target() { + super(Argument.PlotID); + } + @Override public boolean onCommand(PlotPlayer plr, String[] args) { Location plrLocation = plr.getLocation();