Forgot this

This commit is contained in:
boy0001 2015-07-31 06:13:54 +10:00
parent 8191e5f625
commit cdee23796b
2 changed files with 6 additions and 5 deletions

View File

@ -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<>();
}
}
}

View File

@ -28,8 +28,8 @@ public class SpongePlayer extends PlotPlayer {
private UUID uuid;
private String name;
private long last = 0;
private HashSet<String> hasPerm = new HashSet<>();
private HashSet<String> noPerm = new HashSet<>();
public HashSet<String> hasPerm = new HashSet<>();
public HashSet<String> noPerm = new HashSet<>();
public SpongePlayer(Player player) {
this.player = player;