Adds ability to display current value of blacksmith commands
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user