Game: add isInsideMap(Player) and have border call that on Game.java in order to have games able to define specific borders for players

This commit is contained in:
libraryaddict 2015-05-30 10:30:30 +12:00
parent 092447170e
commit 35c005feb8

View File

@ -1273,7 +1273,12 @@ public abstract class Game implements Listener
{
CreatureAllowOverride = event.getAllowed();
}
public boolean isInsideMap(Player player)
{
return isInsideMap(player.getLocation());
}
public boolean isInsideMap(Location loc)
{
return !(