Class GlobalDataHandlerProxy

java.lang.Object
com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandler
com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy

public abstract class GlobalDataHandlerProxy extends GlobalDataHandler
Proxy handler for global data with time change support.
  • Constructor Details

    • GlobalDataHandlerProxy

      public GlobalDataHandlerProxy(GlobalMySQL globalMysql, ArrayList<String> servers)
      Constructor for GlobalDataHandlerProxy.
      Parameters:
      globalMysql - the global MySQL instance
      servers - the list of servers
  • Method Details

    • shutdown

      public void shutdown()
      Shuts down the time changed timer.
    • checkForFinishedTimeChanges

      public void checkForFinishedTimeChanges()
      Checks for finished time changes across servers.
    • onTimeChange

      public void onTimeChange(TimeType type)
      Called when a time change occurs.
      Parameters:
      type - the time type
    • onTimeChangedFailed

      public abstract void onTimeChangedFailed(String server, TimeType type)
      Called when a time change failed on a server.
      Parameters:
      server - the server name
      type - the time type
    • onTimeChangedFinished

      public abstract void onTimeChangedFinished(TimeType type)
      Called when a time change finished successfully.
      Parameters:
      type - the time type