Package com.sk89q.worldguard
Class WorldGuard
java.lang.Object
com.sk89q.worldguard.WorldGuard
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncheckPlayer
(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.Get the exception convertercom.google.common.util.concurrent.ListeningExecutorService
Get the global executor service for internal usage (please use your own executor service).Get the flag registry.static WorldGuard
The WorldGuard Platform.com.sk89q.worldguard.util.profile.cache.ProfileCache
Get the profile cache.com.sk89q.worldguard.util.profile.resolver.ProfileService
Get the profile lookup service.com.sk89q.worldedit.util.task.Supervisor
Get the supervisor.static String
Get the version.void
setPlatform
(WorldGuardPlatform platform) void
setup()
-
Field Details
-
logger
-
-
Method Details
-
getInstance
-
setup
public void setup() -
getPlatform
The WorldGuard Platform. The Platform is only available after WorldGuard is enabled.- Returns:
- The platform
-
setPlatform
-
getFlagRegistry
Get the flag registry.- Returns:
- the flag registry
-
getSupervisor
public com.sk89q.worldedit.util.task.Supervisor getSupervisor()Get the supervisor.- Returns:
- the supervisor
-
getExecutorService
public com.google.common.util.concurrent.ListeningExecutorService getExecutorService()Get the global executor service for internal usage (please use your own executor service).- Returns:
- the global executor service
-
getProfileService
public com.sk89q.worldguard.util.profile.resolver.ProfileService getProfileService()Get the profile lookup service.- Returns:
- the profile lookup service
-
getProfileCache
public com.sk89q.worldguard.util.profile.cache.ProfileCache getProfileCache()Get the profile cache.- Returns:
- the profile cache
-
getExceptionConverter
Get the exception converter- Returns:
- the exception converter
-
checkPlayer
public LocalPlayer checkPlayer(com.sk89q.worldedit.extension.platform.Actor sender) throws com.sk89q.minecraft.util.commands.CommandException Checks to see if the sender is a player, otherwise throw an exception.- Parameters:
sender
- The sender- Returns:
- The player
- Throws:
com.sk89q.minecraft.util.commands.CommandException
- if it isn't a player
-
disable
public void disable()Called when WorldGuard should be disabled. -
getVersion
Get the version.- Returns:
- the version of WorldEdit
-