Super duper minor change
This commit is contained in:
parent
76bef40b0b
commit
26be297972
1 changed files with 8 additions and 4 deletions
|
@ -25,6 +25,7 @@ public class PlotChangeListener implements Listener{
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerPlotChange(PlayerChangePlotEvent plotEvent){
|
public void onPlayerPlotChange(PlayerChangePlotEvent plotEvent){
|
||||||
Player player = plotEvent.getPlayer();
|
Player player = plotEvent.getPlayer();
|
||||||
|
player.sendMessage("PING");
|
||||||
if (dickmode == false){
|
if (dickmode == false){
|
||||||
debug(player, "dickies");
|
debug(player, "dickies");
|
||||||
return;
|
return;
|
||||||
|
@ -37,18 +38,21 @@ public class PlotChangeListener implements Listener{
|
||||||
debug(player, "racism");
|
debug(player, "racism");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
player.sendMessage("PONG");
|
||||||
Resident currentResident = new Resident(player.getName());
|
Resident currentResident = new Resident(player.getName());
|
||||||
Town town;
|
Town town;
|
||||||
try {
|
try {
|
||||||
|
player.sendMessage("PYONG");
|
||||||
debug(player, "1"+plotEvent.toString());
|
debug(player, "1"+plotEvent.toString());
|
||||||
debug(player, "2"+plotEvent.getTo().toString());
|
debug(player, "2"+plotEvent.getTo().toString());
|
||||||
debug(player, "3"+plotEvent.getTo().getTownBlock().toString());
|
debug(player, "3"+plotEvent.getTo().getTownBlock().toString());
|
||||||
debug(player, "4"+Boolean.toString(plotEvent.getTo().getTownBlock().hasTown()));
|
debug(player, "4"+Boolean.toString(plotEvent.getTo().getTownBlock().hasTown()));
|
||||||
debug(player, "5"+plotEvent.getTo().getTownBlock().getTown().toString());
|
debug(player, "5"+plotEvent.getTo().getTownBlock().getTown().toString());
|
||||||
if (plotEvent.getTo().getTownBlock().hasTown())
|
player.sendMessage("-");
|
||||||
|
if (plotEvent.getTo().getTownBlock().hasTown()){
|
||||||
|
player.sendMessage("YANG");
|
||||||
town = plotEvent.getTo().getTownBlock().getTown();
|
town = plotEvent.getTo().getTownBlock().getTown();
|
||||||
else{
|
}else{
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +66,7 @@ public class PlotChangeListener implements Listener{
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
}
|
}
|
||||||
private void debug(Player player, String string){
|
private void debug(Player player, String string){
|
||||||
if (player.getName() == "alisolarflare")
|
if (player.getName().equalsIgnoreCase("alisolarflare"))
|
||||||
player.sendMessage(string);
|
player.sendMessage(string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue