Add Flag Multilingual
Dieser Commit ist enthalten in:
Ursprung
7fee0669a1
Commit
a002a6ef16
@ -1,9 +1,30 @@
|
|||||||
PREFIX = §eBau§8System §8»
|
PREFIX = §eBau§8System §8»
|
||||||
|
|
||||||
|
# Permission
|
||||||
PERMISSION_WORLD = Einstellungen vornehmen
|
PERMISSION_WORLD = Einstellungen vornehmen
|
||||||
PERMISSION_WORLD_EDIT = WorldEdit verwenden
|
PERMISSION_WORLD_EDIT = WorldEdit verwenden
|
||||||
|
|
||||||
PERMISSION_CHANGE_YOU_ENABLE = §aDer Spieler darf nun {0}
|
PERMISSION_CHANGE_YOU_ENABLE = §aDer Spieler darf nun {0}
|
||||||
PERMISSION_CHANGE_YOU_DISABLE = §cDer Spieler darf nun nicht mehr {0}
|
PERMISSION_CHANGE_YOU_DISABLE = §cDer Spieler darf nun nicht mehr {0}
|
||||||
PERMISSION_CHANGE_OTHER_ENABLE = §aDu kannst nun auf der Welt von §6{0}§a {1}
|
PERMISSION_CHANGE_OTHER_ENABLE = §aDu kannst nun auf der Welt von §6{0}§a {1}
|
||||||
PERMISSION_CHANGE_OTHER_DISABLE = §cDu kannst nun nicht mehr auf der Welt von §6{0}§c {1}
|
PERMISSION_CHANGE_OTHER_DISABLE = §cDu kannst nun nicht mehr auf der Welt von §6{0}§c {1}
|
||||||
|
|
||||||
|
# Flags
|
||||||
|
FLAG_FIRE_ALLOW = §can
|
||||||
|
FLAG_FIRE_DENY = §aaus
|
||||||
|
|
||||||
|
FLAG_FREEZE_ACTIVE = §aan
|
||||||
|
FLAG_FREEZE_INACTIVE = §aaus
|
||||||
|
|
||||||
|
FLAG_PROTECT_ACTIVE = §aan
|
||||||
|
FLAG_PROTECT_INACTIVE = §aaus
|
||||||
|
|
||||||
|
FLAG_TNT_ALLOW = §aan
|
||||||
|
FLAG_TNT_DENY = §caus
|
||||||
|
FLAG_TNT_ONLY_TB = §7Kein §eBaurahmen
|
||||||
|
|
||||||
|
FLAG_COLOR = Color
|
||||||
|
FLAG_TNT = TNT
|
||||||
|
FLAG_FIRE = Fire
|
||||||
|
FLAG_FREEZE = Freeze
|
||||||
|
FLAG_PROTECT = Protect
|
@ -29,11 +29,11 @@ import lombok.Getter;
|
|||||||
@Getter
|
@Getter
|
||||||
public enum Flag implements EnumDisplay {
|
public enum Flag implements EnumDisplay {
|
||||||
|
|
||||||
COLOR("Color", ColorMode.class, ColorMode.YELLOW),
|
COLOR("FLAG_COLOR", ColorMode.class, ColorMode.YELLOW),
|
||||||
TNT("TNT", TNTMode.class, TNTMode.ONLY_TB),
|
TNT("FLAG_TNT", TNTMode.class, TNTMode.ONLY_TB),
|
||||||
FIRE("Fire", FireMode.class, FireMode.ALLOW),
|
FIRE("FLAG_FIRE", FireMode.class, FireMode.ALLOW),
|
||||||
FREEZE("Freeze", FreezeMode.class, FreezeMode.INACTIVE),
|
FREEZE("FLAG_FREEZE", FreezeMode.class, FreezeMode.INACTIVE),
|
||||||
PROTECT("Protect", ProtectMode.class, ProtectMode.INACTIVE);
|
PROTECT("FLAG_PROTECT", ProtectMode.class, ProtectMode.INACTIVE);
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private static final Set<Flag> flags;
|
private static final Set<Flag> flags;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.region.flags.flagvalues;
|
package de.steamwar.bausystem.region.flags.flagvalues;
|
||||||
|
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
|
||||||
import de.steamwar.bausystem.region.flags.Flag;
|
import de.steamwar.bausystem.region.flags.Flag;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -28,8 +27,8 @@ import lombok.Getter;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum FireMode implements Flag.Value<FireMode> {
|
public enum FireMode implements Flag.Value<FireMode> {
|
||||||
|
|
||||||
ALLOW(ColorConfig.DISABLE + "an"),
|
ALLOW("FLAG_FIRE_ALLOW"),
|
||||||
DENY(ColorConfig.ENABLE + "aus");
|
DENY("FLAG_FIRE_DENY");
|
||||||
|
|
||||||
private static FireMode[] values;
|
private static FireMode[] values;
|
||||||
private final String chatValue;
|
private final String chatValue;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
package de.steamwar.bausystem.region.flags.flagvalues;
|
package de.steamwar.bausystem.region.flags.flagvalues;
|
||||||
|
|
||||||
|
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
|
||||||
import de.steamwar.bausystem.region.flags.Flag;
|
import de.steamwar.bausystem.region.flags.Flag;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -29,11 +28,10 @@ import lombok.Getter;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum FreezeMode implements Flag.Value<FreezeMode> {
|
public enum FreezeMode implements Flag.Value<FreezeMode> {
|
||||||
|
|
||||||
ACTIVE("activate", ColorConfig.ENABLE + "an"),
|
ACTIVE("FLAG_FREEZE_ACTIVE"),
|
||||||
INACTIVE("deactivate", ColorConfig.DISABLE + "aus");
|
INACTIVE("FLAG_FREEZE_INACTIVE");
|
||||||
|
|
||||||
private static FreezeMode[] values;
|
private static FreezeMode[] values;
|
||||||
private final String descriptor;
|
|
||||||
private final String chatValue;
|
private final String chatValue;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -60,9 +58,4 @@ public enum FreezeMode implements Flag.Value<FreezeMode> {
|
|||||||
return FreezeMode.INACTIVE;
|
return FreezeMode.INACTIVE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return this.descriptor;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.region.flags.flagvalues;
|
package de.steamwar.bausystem.region.flags.flagvalues;
|
||||||
|
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
|
||||||
import de.steamwar.bausystem.region.flags.Flag;
|
import de.steamwar.bausystem.region.flags.Flag;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -28,8 +27,8 @@ import lombok.Getter;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum ProtectMode implements Flag.Value<ProtectMode> {
|
public enum ProtectMode implements Flag.Value<ProtectMode> {
|
||||||
|
|
||||||
ACTIVE(ColorConfig.ENABLE + "an"),
|
ACTIVE("FLAG_PROTECT_ACTIVE"),
|
||||||
INACTIVE(ColorConfig.DISABLE + "aus");
|
INACTIVE("FLAG_PROTECT_INACTIVE");
|
||||||
|
|
||||||
private static ProtectMode[] values;
|
private static ProtectMode[] values;
|
||||||
private final String chatValue;
|
private final String chatValue;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.region.flags.flagvalues;
|
package de.steamwar.bausystem.region.flags.flagvalues;
|
||||||
|
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
|
||||||
import de.steamwar.bausystem.region.flags.Flag;
|
import de.steamwar.bausystem.region.flags.Flag;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -28,9 +27,9 @@ import lombok.Getter;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum TNTMode implements Flag.Value<TNTMode> {
|
public enum TNTMode implements Flag.Value<TNTMode> {
|
||||||
|
|
||||||
ALLOW(ColorConfig.ENABLE + "an"),
|
ALLOW("FLAG_TNT_ALLOW"),
|
||||||
DENY(ColorConfig.DISABLE + "aus"),
|
DENY("FLAG_TNT_DENY"),
|
||||||
ONLY_TB(ColorConfig.BASE + "Kein " + ColorConfig.HIGHLIGHT + "Baurahmen");
|
ONLY_TB("FLAG_TNT_ONLY_TB");
|
||||||
|
|
||||||
private static TNTMode[] values;
|
private static TNTMode[] values;
|
||||||
private final String chatValue;
|
private final String chatValue;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren