1.6_beta-1
This commit is contained in:
parent
f5ec79e90d
commit
ad55fb53de
2
pom.xml
2
pom.xml
@ -7,7 +7,7 @@
|
|||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>Alias</artifactId>
|
<artifactId>Alias</artifactId>
|
||||||
|
|
||||||
<version>1.6_dev-23</version>
|
<version>1.6_beta-1</version>
|
||||||
<!--version>VERSION_snapshot-0</version-->
|
<!--version>VERSION_snapshot-0</version-->
|
||||||
<!--version>VERSION_beta-0</version-->
|
<!--version>VERSION_beta-0</version-->
|
||||||
<!--version>VERSION_dev-0</version-->
|
<!--version>VERSION_dev-0</version-->
|
||||||
|
@ -63,7 +63,7 @@ public final class Main extends JavaPlugin {
|
|||||||
// Plugin shutdown logic
|
// Plugin shutdown logic
|
||||||
aliasHashMap.clear();
|
aliasHashMap.clear();
|
||||||
allAliases.clear();
|
allAliases.clear();
|
||||||
if (t2codeLib) return;
|
if (!t2codeLib) return;
|
||||||
T2C_Template.onDisable(Util.getPrefix(), instance);
|
T2C_Template.onDisable(Util.getPrefix(), instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ import net.t2code.alias.Spigot.Main;
|
|||||||
import net.t2code.alias.Spigot.config.alias.AliasFile;
|
import net.t2code.alias.Spigot.config.alias.AliasFile;
|
||||||
import net.t2code.alias.Spigot.config.subAlias.SubAliasFile;
|
import net.t2code.alias.Spigot.config.subAlias.SubAliasFile;
|
||||||
import net.t2code.alias.util.Util;
|
import net.t2code.alias.util.Util;
|
||||||
import net.t2code.t2codelib.SPIGOT.api.messages.T2C_Send;
|
|
||||||
import net.t2code.t2codelib.SPIGOT.api.yaml.T2C_ConfigWriter;
|
import net.t2code.t2codelib.SPIGOT.api.yaml.T2C_ConfigWriter;
|
||||||
import net.t2code.t2codelib.util.T2C_ConfigItem;
|
import net.t2code.t2codelib.util.T2C_ConfigItem;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
@ -17,17 +16,15 @@ public class ConfigFileConverter {
|
|||||||
private static YamlConfiguration yamlConfiguration;
|
private static YamlConfiguration yamlConfiguration;
|
||||||
|
|
||||||
public static void convert() {
|
public static void convert() {
|
||||||
File configDeclaration = new File(Main.getPath() + "X_configDeclaration_X.yml");
|
File configDeclaration = new File(Main.getPath() + "/X_configDeclaration_X.yml");
|
||||||
if (configDeclaration.exists()) configDeclaration.delete();
|
configDeclaration.delete();
|
||||||
File aliasDeclaration = new File(Main.getPath() + "/Alias/X_aliasDeclaration_X.yml");
|
File aliasDeclaration = new File(Main.getPath() + "/Alias/X_aliasDeclaration_X.yml");
|
||||||
if (aliasDeclaration.exists()) aliasDeclaration.delete();
|
aliasDeclaration.delete();
|
||||||
File subaliasDeclaration = new File(Main.getPath() + "/SubAlias/X_subAliasDeclaration_X.yml");
|
File subaliasDeclaration = new File(Main.getPath() + "/SubAlias/X_subAliasDeclaration_X.yml");
|
||||||
if (subaliasDeclaration.exists()) subaliasDeclaration.delete();
|
subaliasDeclaration.delete();
|
||||||
|
|
||||||
convertAlias();
|
convertAlias();
|
||||||
convertSubAlias();
|
convertSubAlias();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void convertAlias() {
|
private static void convertAlias() {
|
||||||
@ -78,9 +75,8 @@ public class ConfigFileConverter {
|
|||||||
file.delete();
|
file.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File[] fileArray2 = f.listFiles();
|
|
||||||
if (fileArray2 != null) return;
|
deleteDirectory(f);
|
||||||
f.delete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void convertSubAlias() {
|
private static void convertSubAlias() {
|
||||||
@ -132,9 +128,9 @@ public class ConfigFileConverter {
|
|||||||
file.delete();
|
file.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File[] fileArray2 = f.listFiles();
|
|
||||||
if (fileArray2 != null) return;
|
deleteDirectory(f);
|
||||||
f.delete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setConfig(String path, T2C_ConfigItem item) {
|
private static void setConfig(String path, T2C_ConfigItem item) {
|
||||||
@ -142,4 +138,17 @@ public class ConfigFileConverter {
|
|||||||
item.setValue(yamlConfiguration.get(path));
|
item.setValue(yamlConfiguration.get(path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean deleteDirectory(File dir) {
|
||||||
|
if (dir.isDirectory()) {
|
||||||
|
String[] children = dir.list();
|
||||||
|
for (int i = 0; i < children.length; i++) {
|
||||||
|
boolean success = deleteDirectory(new File(dir, children[i]));
|
||||||
|
if (!success) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return dir.delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,174 +31,183 @@ public class AliasFile {
|
|||||||
|
|
||||||
aliasEnable("alias.enable", true, true,
|
aliasEnable("alias.enable", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.english, List.of("Hier kannst du den Alias deaktivieren."));
|
put(T2C_LanguageEnum.german, 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.english, List.of("Gib hier an, wie die Alias-Befehle für diese Funktion lauten sollen."));
|
put(T2C_LanguageEnum.german, 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.english, List.of("Hier kannst du angeben, ob für die Verwendung des Alias eine Erlaubnis erforderlich ist."));
|
put(T2C_LanguageEnum.german, 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.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.german, 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.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.german, 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.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.german, 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.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.german, 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.english, List.of("Hier kannst du angeben, ob du für den Alias bezahlen musst."));
|
put(T2C_LanguageEnum.german, 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.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.german, 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.english, List.of("Hier legst du den Preis fest."));
|
put(T2C_LanguageEnum.german, 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.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.german, 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.english, List.of("Hier kannst du dem Alias mitteilen, dass er einen oder mehrere Befehle ausführen soll"));
|
put(T2C_LanguageEnum.german, 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.english, List.of("Hier kannst du angeben, ob der Befehl über die Konsole des Servers ausgeführt werden soll"));
|
put(T2C_LanguageEnum.german, 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.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.german, 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.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.german, 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.english, List.of("Hier kannst du angeben, ob der Spieler eine Nachricht erhalten soll."));
|
put(T2C_LanguageEnum.german, 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.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.german, 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 die Minecraft eigenen 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 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.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.german, 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 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"));
|
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.english, List.of("Hier kannst du die Admin-Funktion aktivieren oder deaktivieren"));
|
put(T2C_LanguageEnum.german, 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.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.german, 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.english, List.of("Hier kannst du dem Alias mitteilen, dass er einen oder mehrere Befehle ausführen soll"));
|
put(T2C_LanguageEnum.german, 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.english, List.of("Hier kannst du angeben, ob der Befehl über die Konsole des Servers ausgeführt werden soll"));
|
put(T2C_LanguageEnum.german, 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.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.german, 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("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"));
|
||||||
|
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
adminMessageEnable("alias.admin.message.enable", false, true,
|
adminMessageEnable("alias.admin.message.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
|
put(T2C_LanguageEnum.german, 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."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
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("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 die Minecraft eigenen 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 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("Hier kannst du festlegen, ob der Alias auch in der Konsole verwendet werden kann und was er dort tun soll."));
|
||||||
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("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"));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
consoleBungeeCommand("alias.console.command.proxyCommand", false, true,
|
consoleBungeeCommand("alias.console.command.proxyCommand", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
|
put(T2C_LanguageEnum.german, 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)."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
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("Hier kannst du einen oder mehrere Befehle angeben, die ausgeführt werden sollen."));
|
||||||
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("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."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
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("Gib hier die Nachricht an, die der Spieler erhalten soll."));
|
||||||
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."));
|
||||||
}}),
|
}}),
|
||||||
;
|
;
|
||||||
|
@ -23,188 +23,188 @@ public class SubAliasFile {
|
|||||||
public enum VALUES implements T2C_ConfigItem {
|
public enum VALUES implements T2C_ConfigItem {
|
||||||
aliasEnable("subAlias.enable", true, true,
|
aliasEnable("subAlias.enable", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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."));
|
||||||
}}),
|
}}),
|
||||||
subAliasList("subAlias.subAliasList", List.of("subaliasexample1"), true,
|
subAliasList("subAlias.subAliasList", List.of("subaliasexample1"), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Gib hier an, wie die SubAlias-Befehle für diese Funktion lauten sollen"));
|
||||||
put(T2C_LanguageEnum.english, List.of("Specify here what the SubAlias commands should be for this function"));
|
put(T2C_LanguageEnum.english, List.of("Specify here what the SubAlias commands should be for this function"));
|
||||||
}}),
|
}}),
|
||||||
subAliasFor("subAlias.subAliasFor", "aliasexample1", true,
|
subAliasFor("subAlias.subAliasFor", "aliasexample1", true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Gib hier den Alias-Befehl ein, dem die Subalias folgen sollen.","Zum Beispiel:"," - aliasexample1 -> aliasexample1 <this SubAlias>"," - aliasexample2 test -> aliasexample2 test <this SubAlias>"));
|
||||||
put(T2C_LanguageEnum.english, List.of("Enter here the alias command where the subalias should follow.","For example:"," - aliasexample1 -> aliasexample1 <this SubAlias>"," - aliasexample2 test -> aliasexample2 test <this SubAlias>"));
|
put(T2C_LanguageEnum.english, List.of("Enter here the alias command where the subalias should follow.","For example:"," - aliasexample1 -> aliasexample1 <this SubAlias>"," - aliasexample2 test -> aliasexample2 test <this SubAlias>"));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
permNecessary("subAlias.permission.necessary", true, true,
|
permNecessary("subAlias.permission.necessary", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.permission.permission", "t2c.alias.sub.use.[alias]", true,
|
permission("subAlias.permission.permission", "t2c.alias.sub.use.[alias]", true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Hier kannst du die Berechtigung für den Alias festlegen.", "Der Platzhalter <alias> ist der Alias-Name.", "Wenn du mehrere Alias Commands in der Liste 'subAlias.subAliasList' 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 'subAlias.subAliasList' you have a permission for each alias."));
|
||||||
}}),
|
}}),
|
||||||
permissionMSG("subAlias.permission.customNoPermissionMSG", "", true,
|
permissionMSG("subAlias.permission.customNoPermissionMSG", "", true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.cooldownInSec.global", 0, true,
|
cooldownGlobal("subAlias.cooldownInSec.global", 0, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.cooldownInSec.player", 0, true,
|
cooldownPlayer("subAlias.cooldownInSec.player", 0, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.cost.enable", false, true,
|
costEnable("subAlias.cost.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.cost.confirm", true, true,
|
costConfirm("subAlias.cost.confirm", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.cost.price", 0.0, true,
|
costPrice("subAlias.cost.price", 0.0, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.Cost.allowByPass", true, true,
|
costAllowBypass("subAlias.cost.allowByPass", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.command.enable", false, true,
|
commandEnable("subAlias.command.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.command.commandAsConsole", false, true,
|
commandAsConsole("subAlias.command.commandAsConsole", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.command.proxyCommand", false, true,
|
bungeeCommand("subAlias.command.proxyCommand", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.command.commands", List.of(), true,
|
command("subAlias.command.commands", List.of(), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.message.enable", true, true,
|
messageEnable("subAlias.message.enable", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.message.messages", List.of("This is a test subvcommand of T2C-Alias."), true,
|
messages("subAlias.message.messages", List.of("This is a test subvcommand of T2C-Alias."), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Gib hier die Nachricht an, die der Spieler erhalten soll.", "Gib hier die Nachricht an, die der Spieler erhalten soll.", "Placeholder: [player] = Der Spieler, der den Alias ausführt", "#", "Du kannst die Minecraft eigenen 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 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"));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
admin("subAlias.admin", null, true,
|
admin("subAlias.admin", null, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Hier kannst du festlegen, dass Spieler mit der (in der Option subAlias.admin.permission angegebenen) Erlaubnis 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.", "Beispiel:", "Spieler: /warp CityBuild", "Spieler mit Admin Permission: /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 permission (specified in the subAlias.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("subAlias.admin.enable", false, true,
|
adminEnable("subAlias.admin.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.admin.permission", "t2c.alias.[alias].admin", true,
|
adminPermission("subAlias.admin.permission", "t2c.alias.[alias].admin", true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Hier legst du die Berechtigung für die Admin-Funktion fest","Der Platzhalter [alias] ist der Name des Alias.","Wenn du mehrere Alias-Referrer in der Liste 'subAlias.subAliasList' festgelegt hast, hast du für jeden Alias eine Berechtigung."));
|
||||||
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 'subAlias.subAliasList' you have a permission for each alias."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
adminCommandEnable("subAlias.admin.command.enable", true, true,
|
adminCommandEnable("subAlias.admin.command.enable", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.admin.command.commandAsConsole", true, true,
|
adminCommandAsConsole("subAlias.admin.command.commandAsConsole", true, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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("subAlias.admin.command.proxyCommand", false, true,
|
adminBungeeCommand("subAlias.admin.command.proxyCommand", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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-Alias 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-Alias must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled)."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
adminCommands("subAlias.admin.command.commands", Collections.singletonList("say hi"), true,
|
adminCommands("subAlias.admin.command.commands", Collections.singletonList("say hi"), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Hier kannst du einen oder mehrere Befehle angeben, die ausgeführt werden sollen.", "Placeholder: [player] = Symbolleiste anpassen..."));
|
||||||
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("subAlias.admin.message.enable", false, true,
|
adminMessageEnable("subAlias.admin.message.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
adminMessages("subAlias.admin.message.messages", List.of(), true,
|
adminMessages("subAlias.admin.message.messages", List.of(), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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 die Minecraft eigenen 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 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("subAlias.console.enable", false, true,
|
consoleEnable("subAlias.console.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Hier kannst du festlegen, ob der Alias auch in der Konsole verwendet werden kann und was er dort tun soll."));
|
||||||
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("subAlias.console.command.enable", false, true,
|
consoleCommandEnable("subAlias.console.command.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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"));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
consoleBungeeCommand("subAlias.console.command.proxyCommand", false, true,
|
consoleBungeeCommand("subAlias.console.command.proxyCommand", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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-Alias 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-Alias must be activated in its config!", "(If it is to be executed from the proxy console, the CommandAsConsole option must also be enabled)"));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
consoleCommands("subAlias.console.command.commands", List.of(), true,
|
consoleCommands("subAlias.console.command.commands", List.of(), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Hier kannst du einen oder mehrere Befehle angeben, die ausgeführt werden sollen."));
|
||||||
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("subAlias.console.message.enable", false, true,
|
consoleMessageEnable("subAlias.console.message.enable", false, true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, 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."));
|
||||||
}}),
|
}}),
|
||||||
|
|
||||||
consoleMessages("subAlias.console.message.messages", List.of(), true,
|
consoleMessages("subAlias.console.message.messages", List.of(), true,
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(T2C_LanguageEnum.german, List.of());
|
put(T2C_LanguageEnum.german, List.of("Gib hier die Nachricht an, die der Spieler erhalten soll."));
|
||||||
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."));
|
||||||
}}),
|
}}),
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user