public final class WorldGuard
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
LocalPlayer |
checkPlayer(com.sk89q.worldedit.extension.platform.Actor sender)
Checks to see if the sender is a player, otherwise throw an exception.
|
void |
disable()
Called when WorldGuard should be disabled.
|
WorldGuardExceptionConverter |
getExceptionConverter()
Get the exception converter
|
com.google.common.util.concurrent.ListeningExecutorService |
getExecutorService()
Get the global executor service for internal usage (please use your
own executor service).
|
FlagRegistry |
getFlagRegistry()
Get the flag registry.
|
static WorldGuard |
getInstance() |
WorldGuardPlatform |
getPlatform()
The WorldGuard Platform.
|
com.sk89q.squirrelid.cache.ProfileCache |
getProfileCache()
Get the profile cache.
|
com.sk89q.squirrelid.resolver.ProfileService |
getProfileService()
Get the profile lookup service.
|
com.sk89q.worldedit.util.task.Supervisor |
getSupervisor()
Get the supervisor.
|
static java.lang.String |
getVersion()
Get the version.
|
void |
setPlatform(WorldGuardPlatform platform) |
void |
setup() |
public static WorldGuard getInstance()
public void setup()
public WorldGuardPlatform getPlatform()
public void setPlatform(WorldGuardPlatform platform)
public FlagRegistry getFlagRegistry()
public com.sk89q.worldedit.util.task.Supervisor getSupervisor()
public com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
public com.sk89q.squirrelid.resolver.ProfileService getProfileService()
public com.sk89q.squirrelid.cache.ProfileCache getProfileCache()
public WorldGuardExceptionConverter getExceptionConverter()
public LocalPlayer checkPlayer(com.sk89q.worldedit.extension.platform.Actor sender) throws com.sk89q.minecraft.util.commands.CommandException
sender - The sendercom.sk89q.minecraft.util.commands.CommandException - if it isn't a playerpublic void disable()
public static java.lang.String getVersion()