Adds most of the code necessary for #11
This commit is contained in:
src/main
java
net
knarcraft
resources
@ -31,7 +31,12 @@ public enum GlobalSetting {
|
||||
/**
|
||||
* Whether the cost should increase for damage taken, as opposed to increase for durability present
|
||||
*/
|
||||
NATURAL_COST("global.useNaturalCost", SettingValueType.BOOLEAN, true, "useNaturalCost");
|
||||
NATURAL_COST("global.useNaturalCost", SettingValueType.BOOLEAN, true, "useNaturalCost"),
|
||||
|
||||
/**
|
||||
* Whether to show exact time when displaying the wait time for a reforging or the cool-down
|
||||
*/
|
||||
SHOW_EXACT_TIME("global.showExactTime", SettingValueType.BOOLEAN, false, "showExactTime");
|
||||
|
||||
private final String path;
|
||||
private final String parent;
|
||||
|
@ -180,6 +180,15 @@ public class GlobalSettings {
|
||||
return asBoolean(GlobalSetting.NATURAL_COST);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether to show exact time for reforging wait-time, and for wait-time between sessions
|
||||
*
|
||||
* @return <p>Whether to show exact time</p>
|
||||
*/
|
||||
public boolean getShowExactTime() {
|
||||
return asBoolean(GlobalSetting.SHOW_EXACT_TIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the base price for the given material
|
||||
*
|
||||
|
@ -70,13 +70,14 @@ public enum NPCSetting {
|
||||
* The message displayed when the blacksmith is already reforging something for the player
|
||||
*/
|
||||
BUSY_WITH_REFORGE_MESSAGE("messages.busyReforgeMessage", SettingValueType.STRING,
|
||||
"&cI'm working on it. Be patient!", "busyReforgeMessage"),
|
||||
"&cI'm working on it. Be patient! I'll finish {time}!", "busyReforgeMessage"),
|
||||
|
||||
/**
|
||||
* The message displayed if the player has to wait for the cool-down to expire
|
||||
*/
|
||||
COOL_DOWN_UNEXPIRED_MESSAGE("messages.coolDownUnexpiredMessage", SettingValueType.STRING,
|
||||
"&cYou've already had your chance! Give me a break!", "coolDownUnexpiredMessage"),
|
||||
"&cYou've already had your chance! Give me a break! I'll be ready {time}!",
|
||||
"coolDownUnexpiredMessage"),
|
||||
|
||||
/**
|
||||
* The message displayed when displaying the cost of reforging the held item to the player
|
||||
|
Reference in New Issue
Block a user