add/change item of basic config menu.

This commit is contained in:
alexcrea 2024-03-01 15:09:06 +01:00 committed by alexcrea
parent 065a3a13d8
commit 321a2b1cc8
5 changed files with 165 additions and 46 deletions

View file

@ -32,11 +32,11 @@ class ReloadExecutor : CommandExecutor {
*/
private fun commandBody(hardfail: Boolean): Boolean{
try {
if(!ConfigHolder.reloadAllFromDisk(hardfail)) return false;
if(!ConfigHolder.reloadAllFromDisk(hardfail)) return false
// Then update all global gui containing value from config
BasicConfigGui.INSTANCE.updateGuiValues();
return true;
BasicConfigGui.INSTANCE.updateGuiValues()
return true
}catch (e: Exception){
e.printStackTrace()
return false