Started to implement the config descriptions

This commit is contained in:
JaTiTV 2024-07-11 13:28:30 +02:00
parent ffa4423b7c
commit f5ec79e90d
3 changed files with 58 additions and 50 deletions

View File

@ -21,185 +21,184 @@ import java.util.List;
public class AliasFile { public class AliasFile {
public enum VALUES implements T2C_ConfigItem { public enum VALUES implements T2C_ConfigItem {
aliasDesc("alias", null, true,
new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of("Wenn du weitere Alias Commands hinzufügen möchtest, lege einfach eine weitere Alias Datei an."));
put(T2C_LanguageEnum.english, List.of("If you want to add more alias commands, simply create another alias file."));
}}),
aliasEnable("alias.enable", true, true, aliasEnable("alias.enable", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du den Alias deaktivieren."));
put(T2C_LanguageEnum.english, List.of("Here you can disable the alias.")); put(T2C_LanguageEnum.english, List.of("Here you can disable the alias."));
}}), }}),
aliasList("alias.aliasList", List.of("aliasexample1", "t2caliasexample"), true, aliasList("alias.aliasList", List.of("aliasexample1", "t2caliasexample"), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Gib hier an, wie die Alias-Befehle für diese Funktion lauten sollen."));
put(T2C_LanguageEnum.english, List.of("Specify here what the Alias commands should be for this function.")); put(T2C_LanguageEnum.english, List.of("Specify here what the Alias commands should be for this function."));
}}), }}),
permNecessary("alias.permission.necessary", true, true, permNecessary("alias.permission.necessary", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du angeben, ob für die Verwendung des Alias eine Erlaubnis erforderlich ist."));
put(T2C_LanguageEnum.english, List.of("Here you can say if a permission is needed to use the alias.")); put(T2C_LanguageEnum.english, List.of("Here you can say if a permission is needed to use the alias."));
}}), }}),
permission("alias.permission.permission", "t2c.alias.use.[alias]", true, permission("alias.permission.permission", "t2c.alias.use.[alias]", true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du die Berechtigung für den Alias festlegen.", "Der Platzhalter <alias> ist der Alias-Name.", "Wenn du mehrere Alias-Referrer in der Liste 'alias.aliasList' festgelegt hast, hast du für jeden Alias eine Berechtigung."));
put(T2C_LanguageEnum.english, List.of("Here you can set the permission for the alias.", "The placeholder <alias> is the alias name.", "If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias.")); put(T2C_LanguageEnum.english, List.of("Here you can set the permission for the alias.", "The placeholder <alias> is the alias name.", "If you have set multiple alias referrers in the list 'alias.aliasList' you have a permission for each alias."));
}}), }}),
permissionMSG("alias.permission.customNoPermissionMSG", "", true, permissionMSG("alias.permission.customNoPermissionMSG", "", true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du eine benutzerdefinierte Nicht-Erlaubnis-Meldung für diesen Alias festlegen. Wenn du die Standardmeldung verwenden willst, lass dieses Feld einfach leer."));
put(T2C_LanguageEnum.english, List.of("Here you can set a custom No Permission message for this alias. If you want to use the default message, just leave this blank.")); put(T2C_LanguageEnum.english, List.of("Here you can set a custom No Permission message for this alias. If you want to use the default message, just leave this blank."));
}}), }}),
cooldownGlobal("alias.cooldownInSec.global", 0, true, cooldownGlobal("alias.cooldownInSec.global", 0, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du eine globale Abklingzeit für diesen Alias festlegen.", "Der Wert entspricht den Sekunden.", "Bei 0 ist die Abklingzeit deaktiviert.", "Der Platzhalter [alias] ist der Name des Alias.", "Bypass permission: t2c.alias.cooldown.global.[alias].bypass", "(Die globale Abklingzeit ist höher als die Abklingzeit des Spielers)."));
put(T2C_LanguageEnum.english, List.of("Here you can set a global cooldown for this alias.", "The value corresponds to the seconds.", "At 0, the cooldown is deactivated.", "The placeholder [alias] is the alias name.", "Bypass permission: t2c.alias.cooldown.global.[alias].bypass", "(The global cooldown is above the player cooldown).")); put(T2C_LanguageEnum.english, List.of("Here you can set a global cooldown for this alias.", "The value corresponds to the seconds.", "At 0, the cooldown is deactivated.", "The placeholder [alias] is the alias name.", "Bypass permission: t2c.alias.cooldown.global.[alias].bypass", "(The global cooldown is above the player cooldown)."));
}}), }}),
cooldownPlayer("alias.cooldownInSec.player", 0, true, cooldownPlayer("alias.cooldownInSec.player", 0, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du eine spielerspezifische Abklingzeit für diesen Alias festlegen.", "Der Wert entspricht den Sekunden.", "Bei 0 ist die Abklingzeit deaktiviert.", "Der Platzhalter [alias] ist der Name des Alias.", "Bypass permission: t2c.alias.cooldown.player.[alias].bypass"));
put(T2C_LanguageEnum.english, List.of("Here you can set a player-specific cooldown for this alias.", "The value corresponds to the seconds.", "At 0, the cooldown is deactivated.", "The placeholder [alias] is the alias name.", "Bypass permission: t2c.alias.cooldown.player.[alias].bypass")); put(T2C_LanguageEnum.english, List.of("Here you can set a player-specific cooldown for this alias.", "The value corresponds to the seconds.", "At 0, the cooldown is deactivated.", "The placeholder [alias] is the alias name.", "Bypass permission: t2c.alias.cooldown.player.[alias].bypass"));
}}), }}),
costEnable("alias.cost.enable", false, true, costEnable("alias.cost.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du angeben, ob du für den Alias bezahlen musst."));
put(T2C_LanguageEnum.english, List.of("Here you can say if you have to pay for the alias.")); put(T2C_LanguageEnum.english, List.of("Here you can say if you have to pay for the alias."));
}}), }}),
costConfirm("alias.cost.confirm", true, true, costConfirm("alias.cost.confirm", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du einstellen, ob du vor dem Ausführen des Befehls bestätigen musst, ob du bezahlen willst", "In der config.yml kannst du unter 'buy.confirm.use' einstellen, ob ein Befehl, ein chatListener oder eine GUI zur Bestätigung des Befehls verwendet werden soll."));
put(T2C_LanguageEnum.english, List.of("Here you can set if you have to confirm if you want to pay before executing the command", "In the config.yml you can set under 'buy.confirm.use' if a command, a chatListener or a GUI should be used to confirm the command.")); put(T2C_LanguageEnum.english, List.of("Here you can set if you have to confirm if you want to pay before executing the command", "In the config.yml you can set under 'buy.confirm.use' if a command, a chatListener or a GUI should be used to confirm the command."));
}}), }}),
costPrice("alias.cost.price", 0.0, true, costPrice("alias.cost.price", 0.0, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier legst du den Preis fest."));
put(T2C_LanguageEnum.english, List.of("Here you set the price.")); put(T2C_LanguageEnum.english, List.of("Here you set the price."));
}}), }}),
costAllowBypass("alias.Cost.allowByPass", true, true, costAllowBypass("alias.Cost.allowByPass", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier legst du fest, ob der Bypass aktiviert ist oder ob du trotz des Bypasses zahlen musst (t2c.alias.buy.[alias].bypass)."));
put(T2C_LanguageEnum.english, List.of("Here you define if the bypass is activated or if you have to pay despite the bypass (t2c.alias.buy.[alias].bypass).")); put(T2C_LanguageEnum.english, List.of("Here you define if the bypass is activated or if you have to pay despite the bypass (t2c.alias.buy.[alias].bypass)."));
}}), }}),
commandEnable("alias.command.enable", false, true, commandEnable("alias.command.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du dem Alias mitteilen, dass er einen oder mehrere Befehle ausführen soll"));
put(T2C_LanguageEnum.english, List.of("Here you can tell the alias to execute one or more commands")); put(T2C_LanguageEnum.english, List.of("Here you can tell the alias to execute one or more commands"));
}}), }}),
commandAsConsole("alias.command.commandAsConsole", true, true, commandAsConsole("alias.command.commandAsConsole", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du angeben, ob der Befehl über die Konsole des Servers ausgeführt werden soll"));
put(T2C_LanguageEnum.english, List.of("Here you can specify whether the command should be executed from the console of the server")); put(T2C_LanguageEnum.english, List.of("Here you can specify whether the command should be executed from the console of the server"));
}}), }}),
bungeeCommand("alias.command.proxyCommand", false, true, bungeeCommand("alias.command.proxyCommand", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du festlegen, ob der Befehl auf dem Proxy ausgeführt werden soll.", "Damit diese Funktion funktioniert, muss die T2CodeLib auf deinem Proxy vorhanden sein und die API für T2C-OPSecurity muss in seiner Konfiguration aktiviert sein!", "(Wenn sie von der Proxy-Konsole aus ausgeführt werden soll, muss die Option CommandAsConsole ebenfalls aktiviert sein)."));
put(T2C_LanguageEnum.english, List.of("Here you can define if the command should be executed on the proxy.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled).")); put(T2C_LanguageEnum.english, List.of("Here you can define if the command should be executed on the proxy.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled)."));
}}), }}),
command("alias.command.commands", List.of(), true, command("alias.command.commands", List.of(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du einen oder mehrere Befehle angeben, die ausgeführt werden sollen.", "Placeholder: [player] = Der Spieler, der den Alias ausführt"));
put(T2C_LanguageEnum.english, List.of("Here you can specify one or more commands to be executed.", "Placeholder: [player] = The player who executes the alias")); put(T2C_LanguageEnum.english, List.of("Here you can specify one or more commands to be executed.", "Placeholder: [player] = The player who executes the alias"));
}}), }}),
messageEnable("alias.message.enable", true, true, messageEnable("alias.message.enable", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du angeben, ob der Spieler eine Nachricht erhalten soll."));
put(T2C_LanguageEnum.english, List.of("Here you can specify whether the player should receive a message.")); put(T2C_LanguageEnum.english, List.of("Here you can specify whether the player should receive a message."));
}}), }}),
messages("alias.message.messages", Arrays.asList("<rainbow>This is a test alias</rainbow>", "<color:#d7ff0f>With this you can use several functions such as <color:#ffd6ad>colored text</color>, <click:suggest_command:'/command'><hover:show_text:'<color:#ff745c>Use Command</color>'>clickable texts</hover></click>, <hover:show_text:'<color:#1f66ff>For example Warps</color>'><click:suggest_command:'/warp home'><color:#365eff>shorten commands of other plugins</color></click></hover> and much more.</color>", "<color:#85a0ff><click:open_url:'http://dc.t2code.net'><hover:show_text:'<color:#0887ff>http://dc.t2code.net</color>'>If you have any questions, please contact our support Discord.</hover></click></color>"), true, messages("alias.message.messages", Arrays.asList("<rainbow>This is a test alias</rainbow>", "<color:#d7ff0f>With this you can use several functions such as <color:#ffd6ad>colored text</color>, <click:suggest_command:'/command'><hover:show_text:'<color:#ff745c>Use Command</color>'>clickable texts</hover></click>, <hover:show_text:'<color:#1f66ff>For example Warps</color>'><click:suggest_command:'/warp home'><color:#365eff>shorten commands of other plugins</color></click></hover> and much more.</color>", "<color:#85a0ff><click:open_url:'http://dc.t2code.net'><hover:show_text:'<color:#0887ff>http://dc.t2code.net</color>'>If you have any questions, please contact our support Discord.</hover></click></color>"), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Gib hier die Nachricht an, die der Spieler erhalten soll.", "Es können mehrere Zeilen verwendet werden und Platzhalter werden unterstützt!", "Placeholder: [player] = Der Spieler, der den Alias ausführt", "#", "Du kannst Minecraft-Farbcodes verwenden: https://minecraft.fandom.com/de/wiki/Formatierungscodes", "Du kannst auch MiniMessage verwenden:", " Wiki: https://docs.adventure.kyori.net/minimessage/format.html", " WebUI: https://webui.adventure.kyori.net"));
put(T2C_LanguageEnum.english, List.of("Specify here the message that the player should get.", "Multiple lines can be used and placeholders are supported!", "Placeholder: [player] = The player who executes the alias", "#", "You can use Minecraft custom color codes: https://minecraft.fandom.com/de/wiki/Formatierungscodes", "You can also use MiniMessage:", " Wiki: https://docs.adventure.kyori.net/minimessage/format.html", " WebUI: https://webui.adventure.kyori.net")); put(T2C_LanguageEnum.english, List.of("Specify here the message that the player should get.", "Multiple lines can be used and placeholders are supported!", "Placeholder: [player] = The player who executes the alias", "#", "You can use Minecraft color codes: https://minecraft.fandom.com/de/wiki/Formatierungscodes", "You can also use MiniMessage:", " Wiki: https://docs.adventure.kyori.net/minimessage/format.html", " WebUI: https://webui.adventure.kyori.net"));
}}), }}),
admin("alias.admin", null, true, admin("alias.admin", null, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du festlegen, dass Spieler mit der Berechtigung (Bei der Option alias.admin.permission angegeben) eine andere Funktion haben als andere Spieler.", "Du kannst z.B. sagen, dass Spieler zu einem bestimmten Punkt kommen sollen und Spieler mit der Admin-Funktion nur auf dem Server zu der Position kommen sollen, wo sie vorher waren.", "Example:", "Player: /warp CityBuild", "Spieler mit Admin Perm: /server CityBuild"));
put(T2C_LanguageEnum.english, List.of("Here you can specify that players with the permission () have a different function than other players.", "For example, you can say that players should come to a certain point and players with the admin function only to the server to the position where they were before.", "Example:", "Player: /warp CityBuild", "Player with Admin Perm: /server CityBuild")); put(T2C_LanguageEnum.english, List.of("Here you can specify that players with the authorisation (specified in the alias.admin.permission option) have a different function than other players.", "For example, you can say that players should come to a certain point and players with the admin function only to the server to the position where they were before.", "Example:", "Player: /warp CityBuild", "Player with Admin Perm: /server CityBuild"));
}}), }}),
adminEnable("alias.admin.enable", false, true, adminEnable("alias.admin.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du die Admin-Funktion aktivieren oder deaktivieren"));
put(T2C_LanguageEnum.english, List.of("Here you can enable or disable the admin function")); put(T2C_LanguageEnum.english, List.of("Here you can enable or disable the admin function"));
}}), }}),
adminPermission("alias.admin.permission", "t2c.alias.[alias].admin", true, adminPermission("alias.admin.permission", "t2c.alias.[alias].admin", true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier legst du die Berechtigung für die Admin-Funktion fest","Der Platzhalter [alias] ist der Name des Alias.","Der Platzhalter [alias] ist der Name des Alias."));
put(T2C_LanguageEnum.english, List.of("Here you set the permission for the admin function","The placeholder [alias] is the alias name.","If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias.")); put(T2C_LanguageEnum.english, List.of("Here you set the permission for the admin function","The placeholder [alias] is the alias name.","If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias."));
}}), }}),
adminCommandEnable("alias.admin.command.enable", true, true, adminCommandEnable("alias.admin.command.enable", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du dem Alias mitteilen, dass er einen oder mehrere Befehle ausführen soll"));
put(T2C_LanguageEnum.english, List.of("Here you can tell the alias to execute one or more commands")); put(T2C_LanguageEnum.english, List.of("Here you can tell the alias to execute one or more commands"));
}}), }}),
adminCommandAsConsole("alias.admin.command.commandAsConsole", true, true, adminCommandAsConsole("alias.admin.command.commandAsConsole", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du angeben, ob der Befehl über die Konsole des Servers ausgeführt werden soll"));
put(T2C_LanguageEnum.english, List.of("Here you can specify whether the command should be executed from the console of the server")); put(T2C_LanguageEnum.english, List.of("Here you can specify whether the command should be executed from the console of the server"));
}}), }}),
adminBungeeCommand("alias.admin.command.proxyCommand", false, true, adminBungeeCommand("alias.admin.command.proxyCommand", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.english, List.of("Hier kannst du festlegen, ob der Befehl auf dem Proxy ausgeführt werden soll.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled)."));
put(T2C_LanguageEnum.english, List.of("Here you can define if the command should be executed on the proxy.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled).")); put(T2C_LanguageEnum.english, List.of("Here you can define if the command should be executed on the proxy.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled)."));
}}), }}),
adminCommands("alias.admin.command.commands", Collections.singletonList("say hi"), true, adminCommands("alias.admin.command.commands", Collections.singletonList("say hi"), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can specify one or more commands to be executed.", "Placeholder: [player] = The player who executes the alias")); put(T2C_LanguageEnum.english, List.of("Here you can specify one or more commands to be executed.", "Placeholder: [player] = The player who executes the alias"));
}}), }}),
adminMessageEnable("alias.admin.message.enable", false, true, adminMessageEnable("alias.admin.message.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can specify whether the player should receive a message.")); put(T2C_LanguageEnum.english, List.of("Here you can specify whether the player should receive a message."));
}}), }}),
adminMessages("alias.admin.message.messages", List.of(), true, adminMessages("alias.admin.message.messages", List.of(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Specify here the message that the player should get.", "Multiple lines can be used and placeholders are supported!", "Placeholder: [player] = The player who executes the alias", "#", "You can use Minecraft custom color codes: https://minecraft.fandom.com/de/wiki/Formatierungscodes", "You can also use MiniMessage:", " Wiki: https://docs.adventure.kyori.net/minimessage/format.html", " WebUI: https://webui.adventure.kyori.net")); put(T2C_LanguageEnum.english, List.of("Specify here the message that the player should get.", "Multiple lines can be used and placeholders are supported!", "Placeholder: [player] = The player who executes the alias", "#", "You can use Minecraft custom color codes: https://minecraft.fandom.com/de/wiki/Formatierungscodes", "You can also use MiniMessage:", " Wiki: https://docs.adventure.kyori.net/minimessage/format.html", " WebUI: https://webui.adventure.kyori.net"));
}}), }}),
consoleEnable("alias.console.enable", false, true, consoleEnable("alias.console.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can define if the alias is also usable in the console and what it should do from there.")); put(T2C_LanguageEnum.english, List.of("Here you can define if the alias is also usable in the console and what it should do from there."));
}}), }}),
consoleCommandEnable("alias.console.command.enable", false, true, consoleCommandEnable("alias.console.command.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can tell the alias to execute one or more commands")); put(T2C_LanguageEnum.english, List.of("Here you can tell the alias to execute one or more commands"));
}}), }}),
consoleBungeeCommand("alias.console.command.proxyCommand", false, true, consoleBungeeCommand("alias.console.command.proxyCommand", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can define if the command should be executed on the proxy.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled).")); put(T2C_LanguageEnum.english, List.of("Here you can define if the command should be executed on the proxy.", "For this function to work, the T2CodeLib must be present on your proxy and the API for T2C-OPSecurity must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled)."));
}}), }}),
consoleCommands("alias.console.command.commands", List.of(), true, consoleCommands("alias.console.command.commands", List.of(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can specify one or more commands to be executed.")); put(T2C_LanguageEnum.english, List.of("Here you can specify one or more commands to be executed."));
}}), }}),
consoleMessageEnable("alias.console.message.enable", false, true, consoleMessageEnable("alias.console.message.enable", false, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Here you can specify whether the player should receive a message.")); put(T2C_LanguageEnum.english, List.of("Here you can specify whether the player should receive a message."));
}}), }}),
consoleMessages("alias.console.message.messages", List.of(), true, consoleMessages("alias.console.message.messages", List.of(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of());
put(T2C_LanguageEnum.english, List.of("Specify here the message that the player should get.")); put(T2C_LanguageEnum.english, List.of("Specify here the message that the player should get."));
}}), }}),
; ;

View File

@ -18,79 +18,79 @@ public class Config {
public enum VALUES implements T2C_ConfigItem { public enum VALUES implements T2C_ConfigItem {
language("plugin.language", "english", true, language("plugin.language", "english", true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kannst du die Sprache des Plugins einstellen."));
put(T2C_LanguageEnum.english, List.of("In this option you can set the language of the plugin.")); put(T2C_LanguageEnum.english, List.of("Here you can set the language of the plugin."));
}}), }}),
updateCheckOnJoin("plugin.updateCheck.onJoin", true, true, updateCheckOnJoin("plugin.updateCheck.onJoin", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Mit dieser Option kannst du festlegen, ob Spieler mit der Berechtigung 't2c.opsecurity.updatemsg' beim Beitritt eine Update-Nachricht erhalten, wenn ein Update für das Plugin verfügbar ist."));
put(T2C_LanguageEnum.english, List.of("In this option you can set if players with the permission 't2c.alias.updatemsg' will get an update message on join when an update for the plugin is available.")); put(T2C_LanguageEnum.english, List.of("In this option you can set if players with the permission 't2c.opsecurity.updatemsg' will get an update message on join when an update for the plugin is available."));
}}), }}),
updateCheckSeePreReleaseUpdates("plugin.updateCheck.seePreReleaseUpdates", true, true, updateCheckSeePreReleaseUpdates("plugin.updateCheck.seePreReleaseUpdates", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("In dieser Option kannst du einstellen, ob du Beta- und Snapshot-Versionen in der Update-Prüfung erhalten und anzeigen möchtest."));
put(T2C_LanguageEnum.english, List.of("In this option you can set whether you want to receive and display beta and snapshot versions in the update check.")); put(T2C_LanguageEnum.english, List.of("In this option you can set whether you want to receive and display beta and snapshot versions in the update check."));
}}), }}),
updateCheckTimeInterval("plugin.updateCheck.timeInterval", 60, true, updateCheckTimeInterval("plugin.updateCheck.timeInterval", 60, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Mit dieser Option kannst du das Zeitintervall in Minuten festlegen, in dem Aktualisierungen überprüft werden sollen."));
put(T2C_LanguageEnum.english, List.of("In this option you can set the time interval in minutes in which updates should be checked.")); put(T2C_LanguageEnum.english, List.of("In this option you can set the time interval in minutes in which updates should be checked."));
}}), }}),
buyMessage("buy.message", true, true, buyMessage("buy.message", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Mit dieser Option kannst du einstellen, ob nach der Zahlung für einen Alias, für den man bezahlen muss, eine Bestätigung gesendet werden soll."));
put(T2C_LanguageEnum.english, List.of("With this option you can set whether a confirmation should be sent after the payment for an alias for which you have to pay.")); put(T2C_LanguageEnum.english, List.of("With this option you can set whether a confirmation should be sent after the payment for an alias for which you have to pay."));
}}), }}),
buyCurrency("buy.currency", "$", true, buyCurrency("buy.currency", "$", true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of(""));
put(T2C_LanguageEnum.english, List.of("With this option you set the currency.")); put(T2C_LanguageEnum.english, List.of("With this option you set the currency."));
}}), }}),
buyConfirmDefault("buy.confirm.use", Confirm.COMMAND, true, buyConfirmDefault("buy.confirm.use", Confirm.COMMAND, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kann man wählen, welche Bestätigungsmethode verwendet werden möchte. (COMMAND, CHAT, GUI)"));
put(T2C_LanguageEnum.english, List.of("Here you can choose which confirmation method you want to use. (COMMAND, CHAT, GUI)")); put(T2C_LanguageEnum.english, List.of("Here you can choose which confirmation method you want to use. (COMMAND, CHAT, GUI)"));
}}), }}),
buyConfirmGuiFillItemDesc("buy.confirm.gui.fillItem", null, true, buyConfirmGuiFillItemDesc("buy.confirm.gui.fillItem", null, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("","!! Du kannst den GUI-Namen und die Schaltflächentexte in der Sprachdatei ändern !!",""));
put(T2C_LanguageEnum.english, List.of(" ", "!! You can change the GUI name and the button texts in the language file !!", " ")); put(T2C_LanguageEnum.english, List.of(" ", "!! You can change the GUI name and the button texts in the language file !!", " "));
}}), }}),
buyConfirmGuiFillItemEnabled("buy.confirm.gui.fillItem.enabled", true, true, buyConfirmGuiFillItemEnabled("buy.confirm.gui.fillItem.enabled", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kannst du einstellen, ob ein Fillitem in der Confirm GUI verwendet werden soll."));
put(T2C_LanguageEnum.english, List.of("Here you can set if a fillitem should be used in the Confirm GUI.")); put(T2C_LanguageEnum.english, List.of("Here you can set if a fillitem should be used in the Confirm GUI."));
}}), }}),
buyConfirmGuiFillItem("buy.confirm.gui.fillItem.material", T2C_ItemVersion.getBlackStainedGlassPane().getType().toString(), true, buyConfirmGuiFillItem("buy.confirm.gui.fillItem.material", T2C_ItemVersion.getBlackStainedGlassPane().getType().toString(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kannst du einstellen, welches Fillitem in der Confirm GUI verwendet werden soll."));
put(T2C_LanguageEnum.english, List.of("Here you can set which fillitem should be used in the Confirm GUI.")); put(T2C_LanguageEnum.english, List.of("Here you can set which fillitem should be used in the Confirm GUI."));
}}), }}),
buyConfirmGuiConfirm("buy.confirm.gui.confirm.material", T2C_ItemVersion.getGreenWool().getType().toString(), true, buyConfirmGuiConfirm("buy.confirm.gui.confirm.material", T2C_ItemVersion.getGreenWool().getType().toString(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kannst du das Material für die Bestätigungsschaltfläche festlegen."));
put(T2C_LanguageEnum.english, List.of("Here you can set the material for the confirmation button.")); put(T2C_LanguageEnum.english, List.of("Here you can set the material for the confirmation button."));
}}), }}),
buyConfirmGuiCancel("buy.confirm.gui.cancel.material", T2C_ItemVersion.getRedWool().getType().toString(), true, buyConfirmGuiCancel("buy.confirm.gui.cancel.material", T2C_ItemVersion.getRedWool().getType().toString(), true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kannst du das Material für die Abbruchtaste festlegen."));
put(T2C_LanguageEnum.english, List.of("Here you can set the material for the cancel button.")); put(T2C_LanguageEnum.english, List.of("Here you can set the material for the cancel button."));
}}), }}),
subAliasTab("subAlias.tabComplete", true, true, subAliasTab("subAlias.tabComplete", true, true,
new HashMap<>() {{ new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of()); put(T2C_LanguageEnum.german, List.of("Hier kannst du einstellen, ob Unterbefehle als tabComplete angezeigt werden sollen."));
put(T2C_LanguageEnum.english, List.of("Here you can set if subcommands should be displayed as tabComplete.")); put(T2C_LanguageEnum.english, List.of("Here you can set if subcommands should be displayed as tabComplete."));
}}), }}),
; ;

View File

@ -15,6 +15,15 @@ public class Language {
public enum VALUES implements T2C_ConfigItemLanguages { public enum VALUES implements T2C_ConfigItemLanguages {
otherLang("plugin", null,
new HashMap<>() {{
put(T2C_LanguageEnum.german, null);
put(T2C_LanguageEnum.english, null);
}},
new HashMap<>() {{
put(T2C_LanguageEnum.german, List.of("Wenn du eine Eigene Sprache hinzufügen magst, dann kopiere einfach eine Sprachdatei und benenne sie in deine Sprache, dies kannst du dann in der config.yml einstellen.", ""));
put(T2C_LanguageEnum.english, List.of("If you want to add your own language, simply copy a language file and rename it to your language, you can then set this in config.yml.", ""));
}}),
onlyForPlayer("plugin.onlyForPlayer", null, onlyForPlayer("plugin.onlyForPlayer", null,
new HashMap<>() {{ new HashMap<>() {{