Removes nodeName and uses commandName instead

This commit is contained in:
2022-10-18 11:56:54 +02:00
parent 154c17b2c6
commit 8326da5425
3 changed files with 4 additions and 19 deletions

View File

@ -131,7 +131,6 @@ public enum NPCSetting {
private final String childPath;
private final Object value;
private final String commandName;
private final String nodeName;
private final SettingValueType valueType;
/**
@ -146,14 +145,8 @@ public enum NPCSetting {
this.path = "defaults." + path;
this.value = value;
this.valueType = valueType;
String[] pathParts = path.split("\\.");
this.childPath = path;
this.commandName = commandName;
if (pathParts.length > 0) {
this.nodeName = pathParts[pathParts.length - 1];
} else {
this.nodeName = "";
}
}
/**
@ -192,15 +185,6 @@ public enum NPCSetting {
return commandName;
}
/**
* Gets the name of this configuration node
*
* @return <p>The name of this configuration node</p>
*/
public String getNodeName() {
return nodeName;
}
/**
* Gets the value type for this setting
*