From 4119b665832d1725e8a5329be2a9c7bcd0792378 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 5 Jun 2015 22:42:45 +1000 Subject: [PATCH] Added standard attribute prefix --- .../com/intellectualcrafters/plot/object/BukkitPlayer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/BukkitPlayer.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/BukkitPlayer.java index 6adc1fbc1..abb1073f2 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/BukkitPlayer.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/BukkitPlayer.java @@ -156,6 +156,7 @@ public class BukkitPlayer implements PlotPlayer { @Override public void setAttribute(String key) { + key = "plotsquared_user_attributes." + key; Permission perm = Bukkit.getServer().getPluginManager().getPermission(key); if (perm == null) { perm = new Permission(key, PermissionDefault.FALSE); @@ -167,11 +168,13 @@ public class BukkitPlayer implements PlotPlayer { @Override public boolean getAttribute(String key) { + key = "plotsquared_user_attributes." + key; return player.hasPermission(key); } @Override public void removeAttribute(String key) { + key = "plotsquared_user_attributes." + key; EconHandler.manager.setPermission(this, key, false); } }