Adds ability to display current value of blacksmith commands

This commit is contained in:
2022-09-19 15:05:22 +02:00
parent f3169c9255
commit 3cfa7a2a0a
2 changed files with 131 additions and 39 deletions

View File

@ -85,6 +85,26 @@ public class GlobalSettings {
save();
}
/**
* Gets the current raw value of the given global setting
*
* @param globalSetting <p>The setting to get</p>
* @return <p>The current raw setting value</p>
*/
public Object getRawValue(GlobalSetting globalSetting) {
return globalSettings.get(globalSetting);
}
/**
* Gets the current raw value of the given default NPC setting
*
* @param npcSetting <p>The setting to get</p>
* @return <p>The current raw setting value</p>
*/
public Object getRawValue(NPCSetting npcSetting) {
return defaultNPCSettings.get(npcSetting);
}
/**
* Sets the enchantment cost for the given enchantment
*