adjusted dickmode check
This commit is contained in:
parent
26be297972
commit
b53bcc041c
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue