Add setDisguiseName

This commit is contained in:
libraryaddict 2020-06-21 20:19:01 +12:00
parent c3fc37182e
commit 9cf9c85fed
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -22,6 +22,7 @@ import me.libraryaddict.disguise.events.UndisguiseEvent;
import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.DisguiseUtilities;
import me.libraryaddict.disguise.utilities.DisguiseValues; import me.libraryaddict.disguise.utilities.DisguiseValues;
import me.libraryaddict.disguise.utilities.LibsPremium; 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.FakeBoundingBox;
import me.libraryaddict.disguise.utilities.reflection.NmsVersion; import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager;
@ -88,7 +89,6 @@ public abstract class Disguise {
@Getter @Getter
private final HashMap<String, Object> customData = new HashMap<>(); private final HashMap<String, Object> customData = new HashMap<>();
@Getter @Getter
@Setter
private String disguiseName; private String disguiseName;
/** /**
* Is the name allowed to be changed by Lib's Disguises if they do some option? * 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; return multiName.length;
} }
@RandomDefaultValue
public void setDisguiseName(String name) {
this.disguiseName = name;
}
/** /**
* Gson why you so dumb and set it to null * Gson why you so dumb and set it to null
*/ */