adjusted dickmode check

This commit is contained in:
alisolarflare 2016-11-05 09:58:14 -04:00
parent 26be297972
commit b53bcc041c

View file

@ -14,19 +14,17 @@ import com.palmergames.bukkit.towny.object.Resident;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
public class PlotChangeListener implements Listener{ public class PlotChangeListener implements Listener{
private boolean dickmode;
private List<Player> cbCreatives = new ArrayList<Player>(); private List<Player> cbCreatives = new ArrayList<Player>();
public CreativeBoundariesModule plugin; public CreativeBoundariesModule plugin;
public PlotChangeListener(CreativeBoundariesModule plugin){ public PlotChangeListener(CreativeBoundariesModule plugin){
this.plugin = plugin; this.plugin = plugin;
this.dickmode = plugin.dickmode;
this.cbCreatives = plugin.cbCreatives; this.cbCreatives = plugin.cbCreatives;
} }
@EventHandler @EventHandler
public void onPlayerPlotChange(PlayerChangePlotEvent plotEvent){ public void onPlayerPlotChange(PlayerChangePlotEvent plotEvent){
Player player = plotEvent.getPlayer(); Player player = plotEvent.getPlayer();
player.sendMessage("PING"); player.sendMessage("PING");
if (dickmode == false){ if (plugin.dickmode == false){
debug(player, "dickies"); debug(player, "dickies");
return; return;
} }