diff options
author | ElgarL <ElgarL@Palmergames.com> | 2014-04-14 22:19:14 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-05-04 12:50:17 +0100 |
commit | e8b51c549fe85e80167659bfd74a2be49f4d15d3 (patch) | |
tree | 775f2de4a6e538a68d902343b66dd32dc771656d /EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | |
parent | 0ef79eea00fcf82dab04bf911b446356a7f3dccd (diff) | |
download | Essentials-e8b51c549fe85e80167659bfd74a2be49f4d15d3.tar Essentials-e8b51c549fe85e80167659bfd74a2be49f4d15d3.tar.gz Essentials-e8b51c549fe85e80167659bfd74a2be49f4d15d3.tar.lz Essentials-e8b51c549fe85e80167659bfd74a2be49f4d15d3.tar.xz Essentials-e8b51c549fe85e80167659bfd74a2be49f4d15d3.zip |
v2.1: - Update for CraftBukkit 1.7.8-R0.1(3050). - Add UUID support. Plugins can still query by player name but a UUID is faster and preferable.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index 03742b023..a4f68864f 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -445,10 +445,11 @@ public class BukkitPermissions { removeAttachment(player.getName());
// force GM to create the player if they are not already listed.
- if (plugin.getWorldsHolder().getWorldData(player.getWorld().getName()).getUser(player.getName()) != null) {
- setPlayer_join(false);
- updatePermissions(event.getPlayer());
- }
+ plugin.getWorldsHolder().getWorldData(player.getWorld().getName()).getUser(player.getUniqueId().toString(), player.getName());
+
+ setPlayer_join(false);
+ updatePermissions(event.getPlayer());
+
setPlayer_join(false);
}
|