Add getter for gson
This commit is contained in:
		| @@ -116,6 +116,7 @@ public class DisguiseUtilities { | ||||
|     private static HashMap<UUID, String> disguiseTeam = new HashMap<>(); | ||||
|     private static File profileCache = new File("plugins/LibsDisguises/GameProfiles"), savedDisguises = new File( | ||||
|             "plugins/LibsDisguises/SavedDisguises"); | ||||
|     @Getter | ||||
|     private static Gson gson; | ||||
|     @Getter | ||||
|     private static boolean pluginsUsed, commandsUsed, copyDisguiseCommandUsed, grabSkinCommandUsed, | ||||
| @@ -192,7 +193,6 @@ public class DisguiseUtilities { | ||||
|         commandsUsed = true; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     public static void saveDisguises() { | ||||
|         if (!LibsPremium.isPremium()) | ||||
|             return; | ||||
| @@ -629,7 +629,6 @@ public class DisguiseUtilities { | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     public static TargetedDisguise[] getDisguises(UUID entityId) { | ||||
|         if (getDisguises().containsKey(entityId)) { | ||||
|             Set<TargetedDisguise> disguises = getDisguises().get(entityId); | ||||
| @@ -640,7 +639,6 @@ public class DisguiseUtilities { | ||||
|         return new TargetedDisguise[0]; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     public static WrappedGameProfile getGameProfile(String playerName) { | ||||
|         if (!hasGameProfile(playerName)) | ||||
|             return null; | ||||
| @@ -874,8 +872,6 @@ public class DisguiseUtilities { | ||||
|         return getProfileFromMojang(playerName, (Object) runnableIfCantReturn, contactMojang); | ||||
|     } | ||||
|  | ||||
|  | ||||
|  | ||||
|     public static void init() { | ||||
|         try { | ||||
|             runningPaper = Class.forName("com.destroystokyo.paper.VersionHistoryManager$VersionData") != null; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user