SteamWar/BauSystem2.0
Archiviert
12
0

Update RegionCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-12-19 17:45:20 +01:00
Ursprung 72652d95f8
Commit 13389f2636

Datei anzeigen

@ -58,11 +58,6 @@ public class RegionCommand extends SWCommand {
super("region", "rg");
}
@Register
public void genericCommand(Player player) {
genericHelp(player);
}
static boolean checkGlobalRegion(Region region, Player p) {
if (region.isGlobal()) {
BauSystem.MESSAGE.send("REGION_REGION_NO_REGION", p);
@ -71,19 +66,6 @@ public class RegionCommand extends SWCommand {
return false;
}
@Register(help = true)
public void genericHelp(Player player, String... args) {
BauSystem.MESSAGE.sendPrefixless("COMMAND_HELP_HEAD", player, "Region");
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_UNDO", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_REDO", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_RESTORE", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_SELECT", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_SELECT_EXTENSION", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_COLOR", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_COPYPOINT", player);
BauSystem.MESSAGE.sendPrefixless("REGION_REGION_HELP_TESTBLOCKPOINT", player);
}
@Register(value = "undo", description = "REGION_REGION_HELP_UNDO")
public void undoCommand(@Guard("WORLD_EDIT") Player p) {
Region region = Region.getRegion(p.getLocation());