summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElgarL <ElgarL@Palmergames.com>2014-06-21 09:09:20 +0100
committerElgarL <ElgarL@Palmergames.com>2014-06-21 09:09:20 +0100
commit4097ef4939abdf13c485a8614c5fb96acad652c8 (patch)
tree87640389497c096729f7f6b8b94eade0a5dfbd25
parent3137c9ae10e5b11e2ee873eae15f830def5b536d (diff)
downloadEssentials-4097ef4939abdf13c485a8614c5fb96acad652c8.tar
Essentials-4097ef4939abdf13c485a8614c5fb96acad652c8.tar.gz
Essentials-4097ef4939abdf13c485a8614c5fb96acad652c8.tar.lz
Essentials-4097ef4939abdf13c485a8614c5fb96acad652c8.tar.xz
Essentials-4097ef4939abdf13c485a8614c5fb96acad652c8.zip
Remove debug spam.
Stop using WeakHashMap in BukkitPermissions as using it with string keys results in unreliable removal.
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java6
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java3
2 files changed, 2 insertions, 7 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java
index af88bc833..c5b762581 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java
@@ -156,8 +156,7 @@ public class WorldDataHolder {
User user = getUsers().get(uUID.toLowerCase());
if (user != null) {
- System.out.println("Matched: " + uUID);
- System.out.println("In World: " + this.getName());
+
user.setLastName(currentName);
return user;
@@ -178,9 +177,6 @@ public class WorldDataHolder {
return getUsers().get(uUID.toLowerCase());
}
- System.out.println("New user: " + uUID);
- System.out.println("In World: " + this.getName());
-
// No user account found so create a new one.
User newUser = createUser(uUID);
newUser.setLastName(currentName);
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
index 7b50f13ad..cbee268b7 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
@@ -27,7 +27,6 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
-import java.util.WeakHashMap;
import org.anjocaido.groupmanager.GroupManager;
import org.anjocaido.groupmanager.data.User;
@@ -54,7 +53,7 @@ import org.bukkit.plugin.PluginManager;
*/
public class BukkitPermissions {
- protected WeakHashMap<String, PermissionAttachment> attachments = new WeakHashMap<String, PermissionAttachment>();
+ protected LinkedHashMap<String, PermissionAttachment> attachments = new LinkedHashMap<String, PermissionAttachment>();
protected LinkedHashMap<String, Permission> registeredPermissions = new LinkedHashMap<String, Permission>();
protected GroupManager plugin;
protected boolean dumpAllPermissions = true;