Fixed and updated things a bit
This commit is contained in:
parent
300eaa70b9
commit
798a901dd6
9 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -404,13 +404,13 @@ public class PlayerListener implements Listener {
|
||||||
.getPlayer());
|
.getPlayer());
|
||||||
String currentWorld = event.getPlayer().getLocation().getWorld().getName();
|
String currentWorld = event.getPlayer().getLocation().getWorld().getName();
|
||||||
Location currentLocation = event.getPlayer().getLocation();
|
Location currentLocation = event.getPlayer().getLocation();
|
||||||
TownyUniverse universe = Towny.plugin.getTownyUniverse();
|
TownyUniverse universe = Towny.getPlugin(Towny.class).getTownyUniverse();
|
||||||
if (mgp.isInMinigame()
|
if (mgp.isInMinigame()
|
||||||
&& mgp.getMinigame().getMechanic().getMechanic()
|
&& mgp.getMinigame().getMechanic().getMechanic()
|
||||||
.equals("creativeglobal")) {
|
.equals("creativeglobal")) {
|
||||||
mgp.setAllowTeleport(true);
|
mgp.setAllowTeleport(true);
|
||||||
}
|
}
|
||||||
else if (universe.isWarTime())
|
else if (TownyUniverse.isWarTime())
|
||||||
{
|
{
|
||||||
War war = universe.getWarEvent();
|
War war = universe.getWarEvent();
|
||||||
if (war.isWarZone(new WorldCoord(currentWorld, currentLocation.getBlockX(), currentLocation.getBlockZ())))
|
if (war.isWarZone(new WorldCoord(currentWorld, currentLocation.getBlockX(), currentLocation.getBlockZ())))
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue