mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Validate Quest for Party
Three Type Requirements: - Leader - All - Valid [Active or Finished]
This commit is contained in:
1 parent
4081153c79
commit
0ef2cc48dd
3 files changed
+94
-27
No files matched your search
@@ -308,6 +308,22 @@ public class PlayerDataController {
|
||||
data.player = player;
|
||||
return data;
|
||||
}
|
||||
|
||||
public static EntityPlayer getPlayerFromUUID(UUID uuid) {
|
||||
MinecraftServer server = MinecraftServer.getServer();
|
||||
if (server != null) {
|
||||
for (Object playerObj : server.getConfigurationManager().playerEntityList) {
|
||||
if (playerObj instanceof EntityPlayer) {
|
||||
EntityPlayer player = (EntityPlayer) playerObj;
|
||||
if (player.getUniqueID().equals(uuid)) {
|
||||
return player;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String hasPlayer(String username) {
|
||||
for(String name : nameUUIDs.keySet()){
|
||||
if(name.equalsIgnoreCase(username))
|
||||
|
||||
Reference in new issue
Block a user