Fixed and updated things a bit

This commit is contained in:
Norbi Peti 2016-04-11 23:03:17 +02:00
parent 300eaa70b9
commit 798a901dd6
9 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -404,13 +404,13 @@ public class PlayerListener implements Listener {
.getPlayer());
String currentWorld = event.getPlayer().getLocation().getWorld().getName();
Location currentLocation = event.getPlayer().getLocation();
TownyUniverse universe = Towny.plugin.getTownyUniverse();
TownyUniverse universe = Towny.getPlugin(Towny.class).getTownyUniverse();
if (mgp.isInMinigame()
&& mgp.getMinigame().getMechanic().getMechanic()
.equals("creativeglobal")) {
mgp.setAllowTeleport(true);
}
else if (universe.isWarTime())
else if (TownyUniverse.isWarTime())
{
War war = universe.getWarEvent();
if (war.isWarZone(new WorldCoord(currentWorld, currentLocation.getBlockX(), currentLocation.getBlockZ())))