mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Fix dynamic name path
This commit is contained in:
parent
f6eb0f14b7
commit
7a4cb6b7f0
@ -114,7 +114,7 @@ public class ParamInfoManager {
|
|||||||
// Add these last as it's what we want to present to be called the least
|
// Add these last as it's what we want to present to be called the least
|
||||||
for (String methodName : new String[]{"setSelfDisguiseVisible", "setHideHeldItemFromSelf",
|
for (String methodName : new String[]{"setSelfDisguiseVisible", "setHideHeldItemFromSelf",
|
||||||
"setHideArmorFromSelf", "setHearSelfDisguise", "setHidePlayer", "setExpires", "setNotifyBar",
|
"setHideArmorFromSelf", "setHearSelfDisguise", "setHidePlayer", "setExpires", "setNotifyBar",
|
||||||
"setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible"}) {
|
"setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible", "setDynamicName"}) {
|
||||||
try {
|
try {
|
||||||
Class cl = boolean.class;
|
Class cl = boolean.class;
|
||||||
|
|
||||||
@ -142,15 +142,6 @@ public class ParamInfoManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (watcherClass == PlayerWatcher.class) {
|
|
||||||
try {
|
|
||||||
methods.add(PlayerDisguise.class.getMethod("setDynamicName", boolean.class));
|
|
||||||
}
|
|
||||||
catch (NoSuchMethodException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return methods.toArray(new Method[0]);
|
return methods.toArray(new Method[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user