Add Loadtimer Multi Lang
Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
8f9e428bed
Commit
2613573cab
@ -256,6 +256,17 @@ LOADER_GUI_SPEED_LORE=§7Aktuell: §e{0}
|
|||||||
LOADER_GUI_SPEED_TITLE=Block Platzier Geschwindigkeit
|
LOADER_GUI_SPEED_TITLE=Block Platzier Geschwindigkeit
|
||||||
LOADER_GUI_STOP=§eLoader Stoppen
|
LOADER_GUI_STOP=§eLoader Stoppen
|
||||||
# Loadtimer
|
# Loadtimer
|
||||||
|
LOADTIMER_HELP_1=§7Messe dich und deine Freunde beim Beladen einer Kanone und bekomme informationen über die Kanone
|
||||||
|
LOADTIMER_HELP_2=§8/§eloadtimer start §8-§7 Startet den einfachen Loadtimer
|
||||||
|
LOADTIMER_HELP_3=§8/§7loadtimer start §8[§7full/half§8] - §7Starte den Timer in einem bestimmten Modus
|
||||||
|
LOADTIMER_HELP_4=§7Loadtimer Modis: Full -> Misst vom ersten TNT bis zur Treib-Explosion, kann somit besser die Schuss Frequent berechnen. Half -> Misst nur bis zur Aktivierung
|
||||||
|
LOADTIMER_HELP_5=§8/§eloadtimer stop §8-§7 Stoppe den Aktuellen Loadtimer
|
||||||
|
LOADTIMER_GUI_GLOBAL=§eLoadtimer gibt es nicht in der Global Region!
|
||||||
|
LOADTIMER_GUI_STOP=§eLoadtimer stoppen
|
||||||
|
LOADTIMER_GUI_START=§eLoadtimer starten
|
||||||
|
LOADTIMER_GUI_TITLE=Loadtimer Modus
|
||||||
|
LOADTIMER_GUI_FULL=§eFull
|
||||||
|
LOADTIMER_GUI_HALF=§eHalf
|
||||||
LOADTIMER_WAITING=§7Platziere ein TNT zum starten...
|
LOADTIMER_WAITING=§7Platziere ein TNT zum starten...
|
||||||
LOADTIMER_BOSSBAR=§7Tick: §e{0}§7(§e{1}§7) Zeit: §e{2}s §7Tnt: §e{3} §7Blöcke
|
LOADTIMER_BOSSBAR=§7Tick: §e{0}§7(§e{1}§7) Zeit: §e{2}s §7Tnt: §e{3} §7Blöcke
|
||||||
LOADTIMER_ACTIVATED=§7Warte auf Zündung
|
LOADTIMER_ACTIVATED=§7Warte auf Zündung
|
||||||
@ -264,7 +275,7 @@ LOADTIMER_SUMARY_HEAD=§7---=== (§eLoadtimer-Auswertung§7) ===---
|
|||||||
LOADTIMER_SUMARY_PLAYERTABLE_HEAD=§7Spieler: §eTNT §7(§eTNT/s§7)
|
LOADTIMER_SUMARY_PLAYERTABLE_HEAD=§7Spieler: §eTNT §7(§eTNT/s§7)
|
||||||
LOADTIMER_SUMARY_PLAYERTABLE_PLAYER=§7{0}: §e{1} §7(§e{2}/s§7)
|
LOADTIMER_SUMARY_PLAYERTABLE_PLAYER=§7{0}: §e{1} §7(§e{2}/s§7)
|
||||||
LOADTIMER_SUMARY_PLAYERTABLE_ALL=Insgesamt
|
LOADTIMER_SUMARY_PLAYERTABLE_ALL=Insgesamt
|
||||||
LOADTIMER_SUMARY_TIMES_HEAD = §7Zeiten: §eSekunden §7(§eTicks§7)
|
LOADTIMER_SUMARY_TIMES_HEAD=§7Zeiten: §eSekunden §7(§eTicks§7)
|
||||||
LOADTIMER_SUMARY_TIMES_START = §7 || §7Start!
|
LOADTIMER_SUMARY_TIMES_START = §7 || §7Start!
|
||||||
LOADTIMER_SUMARY_TIMES_ACTIVATION = §7 || Aktivierung: §e{0}s §7(§e{1}t§7)
|
LOADTIMER_SUMARY_TIMES_ACTIVATION = §7 || Aktivierung: §e{0}s §7(§e{1}t§7)
|
||||||
LOADTIMER_SUMARY_TIMES_IGNITION = §7 || Zündung: §e{0}s §7(§e{1}t§7)
|
LOADTIMER_SUMARY_TIMES_IGNITION = §7 || Zündung: §e{0}s §7(§e{1}t§7)
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.features.loadtimer;
|
package de.steamwar.bausystem.features.loadtimer;
|
||||||
|
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
import de.steamwar.bausystem.linkage.LinkageType;
|
||||||
import de.steamwar.bausystem.linkage.Linked;
|
import de.steamwar.bausystem.linkage.Linked;
|
||||||
import de.steamwar.bausystem.region.Region;
|
import de.steamwar.bausystem.region.Region;
|
||||||
@ -34,12 +34,12 @@ public class LoadtimerCommand extends SWCommand {
|
|||||||
|
|
||||||
@Register(help = true)
|
@Register(help = true)
|
||||||
public void genericHelp(Player p, String... args) {
|
public void genericHelp(Player p, String... args) {
|
||||||
p.sendMessage(ColorConfig.BASE + "---===( " + ColorConfig.HIGHLIGHT + "Loadtimer" + ColorConfig.BASE + ") ===---");
|
BauSystem.MESSAGE.sendPrefixless("COMMAND_HELP_HEAD", p, "Loadtimer");
|
||||||
p.sendMessage(ColorConfig.BASE + "Messe dich und deine Freunde beim Beladen einer Kanone und bekomme informationen über die Kanone");
|
BauSystem.MESSAGE.sendPrefixless("LOADTIMER_HELP_1", p);
|
||||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "loadtimer start" + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Startet den einfachen Loadtimer");
|
BauSystem.MESSAGE.sendPrefixless("LOADTIMER_HELP_2", p);
|
||||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.BASE + "loadtimer start " + ColorConfig.OTHER + "[" + ColorConfig.BASE + "full/half" + ColorConfig.OTHER + "] - " + ColorConfig.BASE + "Starte den Timer in einem bestimmten Modus");
|
BauSystem.MESSAGE.sendPrefixless("LOADTIMER_HELP_3", p);
|
||||||
p.sendMessage(ColorConfig.BASE + "Loadtimer Modis: Full -> Misst vom ersten TNT bis zur Treib-Explosion, kann somit besser die Schuss Frequent berechnen. Half -> Misst nur bis zur Aktivierung");
|
BauSystem.MESSAGE.sendPrefixless("LOADTIMER_HELP_4", p);
|
||||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "loadtimer stop" + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Stoppe den Aktuellen Loadtimer");
|
BauSystem.MESSAGE.sendPrefixless("LOADTIMER_HELP_5", p);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register("start")
|
@Register("start")
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.features.loadtimer;
|
package de.steamwar.bausystem.features.loadtimer;
|
||||||
|
|
||||||
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.bausystem.Permission;
|
import de.steamwar.bausystem.Permission;
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
import de.steamwar.bausystem.linkage.LinkageType;
|
||||||
import de.steamwar.bausystem.linkage.Linked;
|
import de.steamwar.bausystem.linkage.Linked;
|
||||||
import de.steamwar.bausystem.linkage.specific.BauGuiItem;
|
import de.steamwar.bausystem.linkage.specific.BauGuiItem;
|
||||||
@ -48,11 +48,11 @@ public class LoadtimerGuiItem extends BauGuiItem {
|
|||||||
public ItemStack getItem(Player player) {
|
public ItemStack getItem(Player player) {
|
||||||
Region r = Region.getRegion(player.getLocation());
|
Region r = Region.getRegion(player.getLocation());
|
||||||
if (r.isGlobal())
|
if (r.isGlobal())
|
||||||
return new SWItem(Material.BOWL, ColorConfig.HIGHLIGHT + "Loadtimer gibt es nicht in der Global Region!").getItemStack();
|
return new SWItem(Material.BOWL, BauSystem.MESSAGE.parse("LOADTIMER_GUI_GLOBAL", player)).getItemStack();
|
||||||
if (Loadtimer.hasTimer(r)) {
|
if (Loadtimer.hasTimer(r)) {
|
||||||
return new SWItem(Material.BOW, ColorConfig.HIGHLIGHT + "Loadtimer stoppen").getItemStack();
|
return new SWItem(Material.BOW, BauSystem.MESSAGE.parse("LOADTIMER_GUI_STOP", player)).getItemStack();
|
||||||
} else {
|
} else {
|
||||||
return new SWItem(Material.BOW, ColorConfig.HIGHLIGHT + "Loadtimer starten").getItemStack();
|
return new SWItem(Material.BOW, BauSystem.MESSAGE.parse("LOADTIMER_GUI_START", player)).getItemStack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,11 +63,11 @@ public class LoadtimerGuiItem extends BauGuiItem {
|
|||||||
if (Loadtimer.hasTimer(r)) {
|
if (Loadtimer.hasTimer(r)) {
|
||||||
p.performCommand("lt stop");
|
p.performCommand("lt stop");
|
||||||
} else {
|
} else {
|
||||||
SWInventory inv = new SWInventory(p, 9, "Loadtimer Modus");
|
SWInventory inv = new SWInventory(p, 9, BauSystem.MESSAGE.parse("LOADTIMER_GUI_TITLE", p));
|
||||||
inv.setItem(1, Material.OAK_PLANKS, ColorConfig.HIGHLIGHT + "Full", clickType -> {
|
inv.setItem(1, Material.OAK_PLANKS, BauSystem.MESSAGE.parse("LOADTIMER_GUI_FULL", p), clickType -> {
|
||||||
p.performCommand("lt start full");
|
p.performCommand("lt start full");
|
||||||
});
|
});
|
||||||
inv.setItem(7, Material.OAK_SLAB, ColorConfig.HIGHLIGHT + "Half", clickType -> {
|
inv.setItem(7, Material.OAK_SLAB, BauSystem.MESSAGE.parse("LOADTIMER_GUI_HALF", p), clickType -> {
|
||||||
p.performCommand("lt start half");
|
p.performCommand("lt start half");
|
||||||
});
|
});
|
||||||
inv.open();
|
inv.open();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren