Only reload config if valid yml

This commit is contained in:
Sn0wStorm
2019-11-14 16:16:12 +01:00
parent f483f03560
commit 036657747c
10 changed files with 42 additions and 7 deletions
+1
View File
@@ -37,6 +37,7 @@ Error_Recipeload: '&cEs konnten nicht alle Rezepte wiederhergesellt werden: Sieh
Error_ShowHelp: 'Benutze &6/brew help &fum die Hilfe anzuzeigen'
Error_UnknownCommand: Unbekannter Befehl
Error_ConfigUpdate: 'Unbekannte Brewery Config Version: v&v1, Config wurde nicht geupdated!'
Error_YmlRead: 'config.yml konnte nicht gelesen werden, ist die Datei im korrekten yml-Format (korrekte Leerzeichen usw.)?'
# Permission
Error_NoPermissions: '&cDu hast keine Rechte dies zu tun!'
+1
View File
@@ -39,6 +39,7 @@ Error_PlayerCommand: '&cThis command can only be executed as a player!'
Error_Recipeload: '&cNot all recipes could be restored: More information in the server log!'
Error_ShowHelp: Use &6/brew help &fto display the help
Error_UnknownCommand: Unknown Command
Error_YmlRead: 'Could not read file config.yml, please make sure the file is in valid yml format (correct spaces etc.)'
# Etc
Etc_Barrel: Barrel
+1
View File
@@ -38,6 +38,7 @@ Error_PlayerCommand: '&cCette commande ne peut être executée que par un joueur
Error_Recipeload: '&cToutes les recettes n´ont pu être restaurées: Plus d´informations dans les logs du serveur !'
Error_ShowHelp: Utilisez &6/brew help &fpour regarder l´aide
Error_UnknownCommand: Commande inconnue
Error_YmlRead: 'Could not read file config.yml, please make sure the file is in valid yml format (correct spaces etc.)'
# Etc
Etc_Barrel: Baril
+1
View File
@@ -38,6 +38,7 @@ Error_PlayerCommand: '&cQuesto comando può essere eseguito solo da un giocatore
Error_Recipeload: '&cNon è stato possibile recuperare tutte le ricette: ulteriori informazioni nel file log!'
Error_ShowHelp: Usa &6/brew help &fper visualizzare l''aiuto
Error_UnknownCommand: Comando sconosciuto
Error_YmlRead: 'Could not read file config.yml, please make sure the file is in valid yml format (correct spaces etc.)'
# Varie
Etc_Barrel: Barile
+1
View File
@@ -38,6 +38,7 @@ Error_PlayerCommand: '&c這個指令只能由玩家執行!'
Error_Recipeload: '&c並非所有配方都可以有用:服務器日誌中的更多信息!'
Error_ShowHelp: 使用 &6/brew help &f顯示幫助
Error_UnknownCommand: 未知的指令
Error_YmlRead: 'Could not read file config.yml, please make sure the file is in valid yml format (correct spaces etc.)'
# Etc
Etc_Barrel: 釀造桶
+1
View File
@@ -38,6 +38,7 @@ Error_PlayerCommand: '&c该命令必须由玩家执行.'
Error_Recipeload: '&c加载饮品配方时出现问题, 请查看控制台以获得详细信息!'
Error_ShowHelp: 使用&6/brew help&f以查看帮助
Error_UnknownCommand: 未知命令.
Error_YmlRead: 'Could not read file config.yml, please make sure the file is in valid yml format (correct spaces etc.)'
# Etc
Etc_Barrel: 木桶