mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-14 15:26:54 +01:00
Add getter for gson
This commit is contained in:
parent
ed098752f6
commit
4092737259
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user