Fix players being sent they are allowed disguises when they're not

This commit is contained in:
libraryaddict
2020-06-21 20:18:48 +12:00
parent b501147b63
commit c3fc37182e
6 changed files with 24 additions and 7 deletions

View File

@@ -121,7 +121,8 @@ public class ParamInfoManager {
// Add these last as it's what we want to present to be called the least
for (String methodName : new String[]{"setSelfDisguiseVisible", "setHideHeldItemFromSelf",
"setHideArmorFromSelf", "setHearSelfDisguise", "setHidePlayer", "setExpires", "setNotifyBar",
"setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible", "setDynamicName", "setSoundGroup"}) {
"setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible", "setDynamicName", "setSoundGroup",
"setDisguiseName"}) {
try {
Class cl = boolean.class;
@@ -139,6 +140,7 @@ public class ParamInfoManager {
cl = BarStyle.class;
break;
case "setSoundGroup":
case "setDisguiseName":
cl = String.class;
break;
default: