From 9cf9c85fed8484a4cc250328ffd24133b90f8755 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 21 Jun 2020 20:19:01 +1200 Subject: [PATCH] Add setDisguiseName --- .../me/libraryaddict/disguise/disguisetypes/Disguise.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 19138044..4891031a 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -22,6 +22,7 @@ import me.libraryaddict.disguise.events.UndisguiseEvent; import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.DisguiseValues; import me.libraryaddict.disguise.utilities.LibsPremium; +import me.libraryaddict.disguise.utilities.parser.RandomDefaultValue; import me.libraryaddict.disguise.utilities.reflection.FakeBoundingBox; import me.libraryaddict.disguise.utilities.reflection.NmsVersion; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; @@ -88,7 +89,6 @@ public abstract class Disguise { @Getter private final HashMap customData = new HashMap<>(); @Getter - @Setter private String disguiseName; /** * Is the name allowed to be changed by Lib's Disguises if they do some option? @@ -117,6 +117,11 @@ public abstract class Disguise { return multiName.length; } + @RandomDefaultValue + public void setDisguiseName(String name) { + this.disguiseName = name; + } + /** * Gson why you so dumb and set it to null */