From cdee23796b12b279ef04d1343eb179c3acdc051e Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 31 Jul 2015 06:13:54 +1000 Subject: [PATCH] Forgot this --- .../java/com/plotsquared/sponge/listener/MainListener.java | 7 ++++--- .../java/com/plotsquared/sponge/object/SpongePlayer.java | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/plotsquared/sponge/listener/MainListener.java b/src/main/java/com/plotsquared/sponge/listener/MainListener.java index a7b79c1f8..8bc537adf 100644 --- a/src/main/java/com/plotsquared/sponge/listener/MainListener.java +++ b/src/main/java/com/plotsquared/sponge/listener/MainListener.java @@ -72,7 +72,6 @@ import com.intellectualcrafters.plot.util.Permissions; import com.intellectualcrafters.plot.util.StringMan; import com.intellectualcrafters.plot.util.TaskManager; import com.intellectualcrafters.plot.util.UUIDHandler; -import com.plotsquared.bukkit.object.BukkitPlayer; import com.plotsquared.listener.PlotListener; import com.plotsquared.sponge.SpongeMain; import com.plotsquared.sponge.object.SpongePlayer; @@ -836,7 +835,9 @@ public class MainListener { // TODO worldedit mask - ((BukkitPlayer) player).hasPerm = new HashSet<>(); - ((BukkitPlayer) player).noPerm = new HashSet<>(); + if (Settings.PERMISSION_CACHING) { + ((SpongePlayer) player).hasPerm = new HashSet<>(); + ((SpongePlayer) player).noPerm = new HashSet<>(); + } } } diff --git a/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java b/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java index cf097a6ad..ed63bf750 100644 --- a/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java +++ b/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java @@ -28,8 +28,8 @@ public class SpongePlayer extends PlotPlayer { private UUID uuid; private String name; private long last = 0; - private HashSet hasPerm = new HashSet<>(); - private HashSet noPerm = new HashSet<>(); + public HashSet hasPerm = new HashSet<>(); + public HashSet noPerm = new HashSet<>(); public SpongePlayer(Player player) { this.player = player;