Plot info footer

This commit is contained in:
boy0001
2015-07-31 19:46:07 +10:00
parent 0667e885de
commit 6f90700187
10 changed files with 30 additions and 13 deletions

View File

@ -265,6 +265,7 @@ public class Info extends SubCommand {
}
MainUtil.sendMessage(player, C.PLOT_INFO_HEADER);
MainUtil.sendMessage(player, info, false);
MainUtil.sendMessage(player, C.PLOT_INFO_FOOTER);
}
});
return;

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
permission = "plots.admin",
description = "Update PlotSquared",
usage = "/plot update",
requiredType = RequiredType.CONSOLE,
requiredType = RequiredType.PLAYER,
aliases = {"updateplugin"},
category = CommandCategory.DEBUG
)

View File

@ -45,12 +45,6 @@ import com.plotsquared.general.commands.CommandDeclaration;
)
public class Visit extends SubCommand {
public Visit() {
requiredArguments = new Argument[] {
Argument.String
};
}
public List<Plot> getPlots(final UUID uuid) {
final List<Plot> plots = new ArrayList<>();
for (final Plot p : PS.get().getPlots()) {

View File

@ -271,6 +271,12 @@ public class list extends SubCommand {
break;
}
UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid == null) {
try {
uuid = UUID.fromString(args[0]);
}
catch (Exception e) {}
}
if (uuid != null) {
if (!Permissions.hasPermission(plr, "plots.list.player")) {
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.list.player");

View File

@ -28,6 +28,7 @@ import java.util.ArrayList;
import com.intellectualcrafters.plot.PS;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.MainUtil;
import com.intellectualcrafters.plot.util.TaskManager;
import com.plotsquared.general.commands.CommandDeclaration;
@ -35,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
command = "plugin",
permission = "plots.use",
description = "Show plugin information",
aliases = {"version}"},
aliases = {"version"},
category = CommandCategory.INFO
)
public class plugin extends SubCommand {
@ -80,7 +81,7 @@ public class plugin extends SubCommand {
}
};
for (final String s : strings) {
plr.sendMessage(s);
MainUtil.sendMessage(plr, s);
}
}
});