Skip to content

Commit 4092737

Browse files
committed
Add getter for gson
1 parent ed09875 commit 4092737

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public boolean isRemoveable() {
116116
private static HashMap<UUID, String> disguiseTeam = new HashMap<>();
117117
private static File profileCache = new File("plugins/LibsDisguises/GameProfiles"), savedDisguises = new File(
118118
"plugins/LibsDisguises/SavedDisguises");
119+
@Getter
119120
private static Gson gson;
120121
@Getter
121122
private static boolean pluginsUsed, commandsUsed, copyDisguiseCommandUsed, grabSkinCommandUsed,
@@ -192,7 +193,6 @@ public static void setCommandsUsed() {
192193
commandsUsed = true;
193194
}
194195

195-
196196
public static void saveDisguises() {
197197
if (!LibsPremium.isPremium())
198198
return;
@@ -629,7 +629,6 @@ public static TargetedDisguise getDisguise(Player observer, Entity entity) {
629629
return null;
630630
}
631631

632-
633632
public static TargetedDisguise[] getDisguises(UUID entityId) {
634633
if (getDisguises().containsKey(entityId)) {
635634
Set<TargetedDisguise> disguises = getDisguises().get(entityId);
@@ -640,7 +639,6 @@ public static TargetedDisguise[] getDisguises(UUID entityId) {
640639
return new TargetedDisguise[0];
641640
}
642641

643-
644642
public static WrappedGameProfile getGameProfile(String playerName) {
645643
if (!hasGameProfile(playerName))
646644
return null;
@@ -874,8 +872,6 @@ public static WrappedGameProfile getProfileFromMojang(String playerName, Runnabl
874872
return getProfileFromMojang(playerName, (Object) runnableIfCantReturn, contactMojang);
875873
}
876874

877-
878-
879875
public static void init() {
880876
try {
881877
runningPaper = Class.forName("com.destroystokyo.paper.VersionHistoryManager$VersionData") != null;

0 commit comments

Comments
 (0)