This commit is contained in:
Jesse Boyd
2016-08-26 13:54:22 +10:00
parent a95d18499e
commit 90d48b2cd0
2 changed files with 5 additions and 2 deletions

View File

@ -607,7 +607,7 @@ public class PlayerEvents extends PlotListener implements Listener {
PlotPlayer plotPlayer = BukkitUtil.getPlayer(event.getPlayer());
Location location = plotPlayer.getLocation();
PlotArea area = location.getPlotArea();
if (area == null || (!area.PLOT_CHAT && !plotPlayer.getAttribute("chat"))) {
if (area == null || (!area.PLOT_CHAT != plotPlayer.getAttribute("chat"))) {
return;
}
Plot plot = area.getPlot(location);