Class GlobalDataHandlerProxy
java.lang.Object
com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandler
com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy
Proxy handler for global data with time change support.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalDataHandlerProxy(GlobalMySQL globalMysql, ArrayList<String> servers) Constructor for GlobalDataHandlerProxy. -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks for finished time changes across servers.voidonTimeChange(TimeType type) Called when a time change occurs.abstract voidonTimeChangedFailed(String server, TimeType type) Called when a time change failed on a server.abstract voidCalled when a time change finished successfully.voidshutdown()Shuts down the time changed timer.Methods inherited from class com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandler
getBoolean, getExact, getInt, getString, setBoolean, setData, setInt, setString
-
Constructor Details
-
GlobalDataHandlerProxy
Constructor for GlobalDataHandlerProxy.- Parameters:
globalMysql- the global MySQL instanceservers- 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
Called when a time change occurs.- Parameters:
type- the time type
-
onTimeChangedFailed
Called when a time change failed on a server.- Parameters:
server- the server nametype- the time type
-
onTimeChangedFinished
Called when a time change finished successfully.- Parameters:
type- the time type
-