mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-12 01:48:07 +02:00
Opps. Now it grabs it from a online player
This commit is contained in:
parent
4a63ff07ee
commit
7af61ee7df
@ -299,11 +299,11 @@ public class DisguiseUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static UUID getUUID(final Disguise disguise, final String playerName) {
|
public static UUID getUUID(final Disguise disguise, final String playerName) {
|
||||||
/* if (LibVersion.getGameVersion() == LibVersion.V1_7) {
|
if (LibVersion.getGameVersion() == LibVersion.V1_7) {
|
||||||
Player p = Bukkit.getPlayerExact(playerName);
|
Player p = Bukkit.getPlayerExact(playerName);
|
||||||
if (p != null) {
|
if (p != null) {
|
||||||
return p.getUniqueId();
|
return p.getUniqueId();
|
||||||
} else if (disguise != null) {
|
} /*else if (disguise != null) {
|
||||||
if (namesUuids.containsKey(playerName)) {
|
if (namesUuids.containsKey(playerName)) {
|
||||||
if (namesUuids.get(playerName) != null) {
|
if (namesUuids.get(playerName) != null) {
|
||||||
return UUID.fromString(namesUuids.get(playerName));
|
return UUID.fromString(namesUuids.get(playerName));
|
||||||
@ -341,8 +341,8 @@ public class DisguiseUtilities {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}*/
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user