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:
parent
092447170e
commit
35c005feb8
@ -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 !(
|
||||
|
Loading…
Reference in New Issue
Block a user