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;
public class PlotChangeListener implements Listener{
private boolean dickmode;
private List<Player> cbCreatives = new ArrayList<Player>();
public CreativeBoundariesModule plugin;
public PlotChangeListener(CreativeBoundariesModule plugin){
this.plugin = plugin;
this.dickmode = plugin.dickmode;
this.cbCreatives = plugin.cbCreatives;
}
@EventHandler
public void onPlayerPlotChange(PlayerChangePlotEvent plotEvent){
Player player = plotEvent.getPlayer();
player.sendMessage("PING");
if (dickmode == false){
if (plugin.dickmode == false){
debug(player, "dickies");
return;
}