Dieser Commit ist enthalten in:
Ursprung
50d4e7ef2f
Commit
37559ca688
@ -1053,7 +1053,7 @@ REGION_TB_DONE=§7Dummy reset
|
||||
REGION_TB_ERROR=§cError resetting the dummy
|
||||
REGION_TB_NO_PERMS=§cYou are not allowed to reset the dummy here
|
||||
REGION_TB_NO_REGION=§cYou are currently not in any region
|
||||
REGION_TB_NO_SCHEMSHARING=§cYou have an active NoSchemSharing ban until {0}.
|
||||
REGION_TB_NO_SCHEMSHARING=§cYou currently cannot share schematics until {0}.
|
||||
REGION_TNT_HELP=§8/§etnt §8- §7Change the TNT behaviour
|
||||
REGION_TNT_HELP_MODE=§8/§etnt §8[§7Mode§8] §8- §7Set TNT behaviour to a given mode
|
||||
REGION_TNT_ON=§aTNT-Damage activated
|
||||
|
@ -1022,7 +1022,7 @@ REGION_TB_DONE=§7Testblock zurückgesetzt
|
||||
REGION_TB_ERROR=§cFehler beim Zurücksetzen des Testblocks
|
||||
REGION_TB_NO_PERMS=§cDu darfst hier nicht den Testblock zurücksetzen
|
||||
REGION_TB_NO_REGION=§cDu befindest dich derzeit in keiner Region
|
||||
REGION_TB_NO_SCHEMSHARING=§cDu hast einen aktiven NoSchemSharing ban bis {0}.
|
||||
REGION_TB_NO_SCHEMSHARING=§cDu kannst aktuell keine Schematics teilen bis {0}.
|
||||
REGION_TNT_HELP=§8/§etnt §8- §7Ändere das TNT verhalten
|
||||
REGION_TNT_HELP_MODE=§8/§etnt §8[§7Mode§8] §8- §7Setzte das TNT verhalten auf einen Modus
|
||||
REGION_TNT_ON=§aTNT-Schaden aktiviert
|
||||
|
@ -21,6 +21,7 @@ package de.steamwar.bausystem.features.region;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.Permission;
|
||||
import de.steamwar.bausystem.config.BauServer;
|
||||
import de.steamwar.bausystem.region.Region;
|
||||
import de.steamwar.bausystem.region.RegionUtils;
|
||||
import de.steamwar.bausystem.region.utils.RegionExtensionType;
|
||||
@ -44,6 +45,9 @@ import java.util.logging.Level;
|
||||
@Linked
|
||||
public class TestblockCommand extends SWCommand {
|
||||
|
||||
@LinkedInstance
|
||||
public BauServer bauServer;
|
||||
|
||||
public TestblockCommand() {
|
||||
super("testblock", "tb", "dummy");
|
||||
}
|
||||
@ -86,13 +90,11 @@ public class TestblockCommand extends SWCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if(Punishment.isPunished(SteamwarUser.get(p.getUniqueId()), Punishment.PunishmentType.NoSchemSharing, punishment -> {
|
||||
|
||||
BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMSHARING", p, punishment.getEndTime());
|
||||
|
||||
})) {
|
||||
if(bauServer.getOwner() != p.getUniqueId()) {
|
||||
if(Punishment.isPunished(SteamwarUser.get(p.getUniqueId()), Punishment.PunishmentType.NoSchemSharing, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMSHARING", p, punishment.getEndTime()))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
region.reset(node, RegionType.TESTBLOCK, regionExtensionType);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren