This commit is contained in:
boy0001 2014-12-29 00:57:09 +11:00
parent a3c8ba84ab
commit 7522184a34

View File

@ -36,6 +36,10 @@ import org.bukkit.entity.Player;
@Override
public boolean execute(final Player plr, final String... args) {
if (plr != null) {
PlayerFunctions.sendMessage(plr, (C.NOT_CONSOLE));
return false;
}
if (args.length != 2) {
if (args.length == 1) {
try {
@ -43,11 +47,6 @@ import org.bukkit.entity.Player;
final String world = split[0];
final PlotId id = new PlotId(Integer.parseInt(split[1]), Integer.parseInt(split[2]));
if (plr != null) {
PlayerFunctions.sendMessage(plr, (C.NOT_CONSOLE));
return false;
}
if (!PlotMain.isPlotWorld(world)) {
PlayerFunctions.sendMessage(null, C.NOT_VALID_PLOT_WORLD);
return false;