mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-01 05:04:43 +02:00
Plot info footer
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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()) {
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user