diff --git a/paper-api/src/main/java/org/bukkit/permissions/PermissionAttachment.java b/paper-api/src/main/java/org/bukkit/permissions/PermissionAttachment.java index 92ba99046f..d5cfeb20d2 100644 --- a/paper-api/src/main/java/org/bukkit/permissions/PermissionAttachment.java +++ b/paper-api/src/main/java/org/bukkit/permissions/PermissionAttachment.java @@ -1,8 +1,8 @@ package org.bukkit.permissions; +import java.util.LinkedHashMap; import java.util.Map; -import java.util.TreeMap; import org.bukkit.plugin.Plugin; /** @@ -10,7 +10,7 @@ import org.bukkit.plugin.Plugin; */ public class PermissionAttachment { private PermissionRemovedExecutor removed; - private final TreeMap permissions = new TreeMap(); + private final Map permissions = new LinkedHashMap(); private final Permissible permissible; private final Plugin plugin; @@ -69,7 +69,7 @@ public class PermissionAttachment { * @return Copy of all permissions and values expressed by this attachment */ public Map getPermissions() { - return (Map)permissions.clone(); + return new LinkedHashMap(permissions); } /**