Class BukkitSessionManager

java.lang.Object
com.sk89q.worldguard.session.AbstractSessionManager
com.sk89q.worldguard.bukkit.session.BukkitSessionManager
All Implemented Interfaces:
com.sk89q.worldguard.session.SessionManager, Runnable, org.bukkit.event.Listener

public class BukkitSessionManager extends com.sk89q.worldguard.session.AbstractSessionManager implements Runnable, org.bukkit.event.Listener
Keeps tracks of sessions and also does session-related handling (flags, etc.).
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sk89q.worldguard.session.AbstractSessionManager

    com.sk89q.worldguard.session.AbstractSessionManager.CacheKey
  • Field Summary

    Fields inherited from class com.sk89q.worldguard.session.AbstractSessionManager

    RUN_DELAY, SESSION_LIFETIME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasBypass(com.sk89q.worldguard.LocalPlayer player, com.sk89q.worldedit.world.World world)
     
    void
     
    void
    Re-initialize handlers and clear "last position," "last state," etc.
    void
    run()
     
    void
     

    Methods inherited from class com.sk89q.worldguard.session.AbstractSessionManager

    createSession, customHandlersRegistered, get, getIfPresent, registerHandler, resetState, unregisterHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BukkitSessionManager

      public BukkitSessionManager()
  • Method Details

    • resetAllStates

      public void resetAllStates()
      Re-initialize handlers and clear "last position," "last state," etc. information for all players.
      Specified by:
      resetAllStates in interface com.sk89q.worldguard.session.SessionManager
    • onPlayerProcess

      public void onPlayerProcess(ProcessPlayerEvent event)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • hasBypass

      public boolean hasBypass(com.sk89q.worldguard.LocalPlayer player, com.sk89q.worldedit.world.World world)
      Specified by:
      hasBypass in interface com.sk89q.worldguard.session.SessionManager
      Overrides:
      hasBypass in class com.sk89q.worldguard.session.AbstractSessionManager
    • shutdown

      public void shutdown()