From 289f01f7a23ca3e7a21473f155a9b7d07100e2f7 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Tue, 6 Aug 2019 21:46:38 -0400 Subject: [PATCH] Import changes and variable renames --- .../plot/listener/WESubscriber.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java index 3eac6aa62..78379fd9e 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java @@ -36,28 +36,28 @@ public class WESubscriber { Actor actor = event.getActor(); if (actor != null && actor.isPlayer()) { String name = actor.getName(); - PlotPlayer pp = PlotPlayer.wrap(name); + PlotPlayer plotPlayer = PlotPlayer.wrap(name); HashSet mask; - if (pp == null) { + if (plotPlayer == null) { Player player = (Player) actor; - Location loc = player.getLocation(); + Location location = player.getLocation(); com.github.intellectualsites.plotsquared.plot.object.Location pLoc = new com.github.intellectualsites.plotsquared.plot.object.Location( - player.getWorld().getName(), loc.getBlockX(), loc.getBlockX(), - loc.getBlockZ()); + player.getWorld().getName(), location.getBlockX(), location.getBlockX(), + location.getBlockZ()); Plot plot = pLoc.getPlot(); if (plot == null) { event.setExtent(new NullExtent()); return; } mask = plot.getRegions(); - } else if (pp.getAttribute("worldedit")) { + } else if (plotPlayer.getAttribute("worldedit")) { return; } else { - mask = WEManager.getMask(pp); + mask = WEManager.getMask(plotPlayer); if (mask.isEmpty()) { - if (Permissions.hasPermission(pp, "plots.worldedit.bypass")) { - MainUtil.sendMessage(pp, Captions.WORLDEDIT_BYPASS); + if (Permissions.hasPermission(plotPlayer, "plots.worldedit.bypass")) { + MainUtil.sendMessage(plotPlayer, Captions.WORLDEDIT_BYPASS); } if (PlotSquared.get().hasPlotArea(world)) { event.setExtent(new NullExtent());