Adds a new check for items with full durability (#4)
This commit is contained in:
@ -43,7 +43,9 @@ public enum NPCSetting {
|
||||
START_REFORGE_MESSAGE("defaults.messages.startReforgeMessage", SettingValueType.STRING,
|
||||
"&eOk, let's see what I can do...", "startReforgeMessage"),
|
||||
SUCCESS_MESSAGE("defaults.messages.successMessage", SettingValueType.STRING,
|
||||
"There you go! All better!", "successMessage");
|
||||
"There you go! All better!", "successMessage"),
|
||||
NOT_DAMAGED_MESSAGE("defaults.messages.notDamagedMessage", SettingValueType.STRING,
|
||||
"&cThat item is not in need of repair", "notDamagedMessage");
|
||||
|
||||
private final String path;
|
||||
private final String childPath;
|
||||
|
@ -117,6 +117,15 @@ public class NPCSettings {
|
||||
return asString(NPCSetting.INVALID_ITEM_MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the message to display when the presented item is at full durability
|
||||
*
|
||||
* @return <p>The not damaged message</p>
|
||||
*/
|
||||
public String getNotDamagedMessage() {
|
||||
return asString(NPCSetting.NOT_DAMAGED_MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the message to display when a blacksmith starts reforging an item
|
||||
*
|
||||
|
Reference in New Issue
Block a user