Class WorldGuard

java.lang.Object
com.sk89q.worldguard.WorldGuard

public final class WorldGuard extends Object
  • Field Details

    • logger

      public static final Logger logger
  • Method Details

    • getInstance

      public static WorldGuard getInstance()
    • setup

      public void setup()
    • getPlatform

      public WorldGuardPlatform getPlatform()
      The WorldGuard Platform. The Platform is only available after WorldGuard is enabled.
      Returns:
      The platform
    • setPlatform

      public void setPlatform(WorldGuardPlatform platform)
    • getFlagRegistry

      public FlagRegistry 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

      public WorldGuardExceptionConverter 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

      public static String getVersion()
      Get the version.
      Returns:
      the version of WorldEdit