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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue