mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 22:27:23 +02:00
Remove debug spam.
Stop using WeakHashMap in BukkitPermissions as using it with string keys results in unreliable removal.
This commit is contained in:
@@ -156,8 +156,7 @@ public class WorldDataHolder {
|
|||||||
User user = getUsers().get(uUID.toLowerCase());
|
User user = getUsers().get(uUID.toLowerCase());
|
||||||
|
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
System.out.println("Matched: " + uUID);
|
|
||||||
System.out.println("In World: " + this.getName());
|
|
||||||
user.setLastName(currentName);
|
user.setLastName(currentName);
|
||||||
return user;
|
return user;
|
||||||
|
|
||||||
@@ -178,9 +177,6 @@ public class WorldDataHolder {
|
|||||||
return getUsers().get(uUID.toLowerCase());
|
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.
|
// No user account found so create a new one.
|
||||||
User newUser = createUser(uUID);
|
User newUser = createUser(uUID);
|
||||||
newUser.setLastName(currentName);
|
newUser.setLastName(currentName);
|
||||||
|
@@ -27,7 +27,6 @@ import java.util.List;
|
|||||||
import java.util.ListIterator;
|
import java.util.ListIterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.WeakHashMap;
|
|
||||||
|
|
||||||
import org.anjocaido.groupmanager.GroupManager;
|
import org.anjocaido.groupmanager.GroupManager;
|
||||||
import org.anjocaido.groupmanager.data.User;
|
import org.anjocaido.groupmanager.data.User;
|
||||||
@@ -54,7 +53,7 @@ import org.bukkit.plugin.PluginManager;
|
|||||||
*/
|
*/
|
||||||
public class BukkitPermissions {
|
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 LinkedHashMap<String, Permission> registeredPermissions = new LinkedHashMap<String, Permission>();
|
||||||
protected GroupManager plugin;
|
protected GroupManager plugin;
|
||||||
protected boolean dumpAllPermissions = true;
|
protected boolean dumpAllPermissions = true;
|
||||||
|
Reference in New Issue
Block a user