public final class WorldGuardConnection6 extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
allowSpawn(org.bukkit.Location location) |
static List<String> |
getRegionsFromLocation(org.bukkit.Location location) |
static boolean |
isAllowedToEnterRegionByRiding(org.bukkit.entity.Player player,
boolean cacheSpawn)
Checks if the player is riding his pet and entering a different region.
|
static void |
rollBack() |
static boolean |
shouldKickOffPet(org.bukkit.entity.Player player,
String regionId)
Checks if the player should be kicked off his pet
|
public static void allowSpawn(org.bukkit.Location location)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException,
NoSuchMethodException
public static boolean isAllowedToEnterRegionByRiding(org.bukkit.entity.Player player,
boolean cacheSpawn)
throws InvocationTargetException,
IllegalAccessException,
NoSuchMethodException
player - playercacheSpawn - cacheSpawnInvocationTargetException - exceptionIllegalAccessException - exceptionNoSuchMethodException - exceptionpublic static boolean shouldKickOffPet(org.bukkit.entity.Player player,
String regionId)
player - playerregionId - regionIdpublic static List<String> getRegionsFromLocation(org.bukkit.Location location) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
public static void rollBack()
Copyright © 2017. All rights reserved.