diff --git a/pom.xml b/pom.xml
index b2550b13..ea89d19c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
LibsDisguises
LibsDisguises
- 10.0.5
+ 10.0.5-SNAPSHOT
exec:java clean install
diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java
index d8b969f4..a8dad3dc 100644
--- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java
+++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java
@@ -29,6 +29,24 @@ public class PlayerWatcher extends LivingWatcher {
alwaysShowInTab = showPlayerInTab;
}
+ public boolean isNameVisible() {
+ return ((PlayerDisguise) getDisguise()).isNameVisible();
+ }
+
+ public void setNameVisible(boolean nameVisible) {
+ ((PlayerDisguise) getDisguise()).setNameVisible(nameVisible);
+ }
+
+ @RandomDefaultValue
+ public String getName() {
+ return ((PlayerDisguise) getDisguise()).getName();
+ }
+
+ @RandomDefaultValue
+ public void setName(String name) {
+ ((PlayerDisguise) getDisguise()).setName(name);
+ }
+
@Override
public PlayerWatcher clone(Disguise disguise) {
PlayerWatcher watcher = (PlayerWatcher) super.clone(disguise);
diff --git a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java
index 7110643d..9121d39a 100644
--- a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java
+++ b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java
@@ -144,9 +144,7 @@ public class ParamInfoManager {
if (watcherClass == PlayerWatcher.class) {
try {
- methods.add(PlayerDisguise.class.getMethod("setNameVisible", boolean.class));
methods.add(PlayerDisguise.class.getMethod("setDynamicName", boolean.class));
- methods.add(PlayerDisguise.class.getMethod("setName", String.class));
}
catch (NoSuchMethodException e) {
e.printStackTrace();