Package us.ajg0702.queue.api
Class AjQueueAPI
java.lang.Object
us.ajg0702.queue.api.AjQueueAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic AjQueueAPIstatic PermissionHookRegistrystatic QueueHolderRegistrystatic AjQueueSpigotAPI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AliasManagerGets the alias manager.abstract us.ajg0702.utils.common.ConfigGets the ajQueue configabstract EventHandlerGets the event handler.static AjQueueAPIGets the instance of the ajQueue APIabstract QueueLoggerGets the ajQueue logger.abstract LogicgetLogic()Gets the priority logic.abstract LogicGetterGets the logic getter.abstract us.ajg0702.utils.common.MessagesGets the ajQueue messages managerstatic PermissionHookRegistryabstract PlatformMethodsGets the PlatformMethods for the platform (e.g.abstract ProtocolNameManagerGets the protocol name manager Used to get version names from protocol versionsstatic QueueHolderRegistryabstract QueueManagerGets the queue manager.abstract ExecutorServiceabstract ServerTimeManagerGets the server time manager instance, which tracks when players last changed serversstatic AjQueueSpigotAPIabstract doubleGets the time that ajQueue will wait between sending players.abstract booleanChecks if the plugin is the premium version or not.abstract <E> voidlisten(Class<E> event, EventReceiver<E> handler) abstract voidUpdates the time between players.abstract voidshutdown()Tells ajQueue to shut down.
-
Field Details
-
queueHolderRegistry
-
permissionHookRegistry
-
INSTANCE
-
SPIGOT_INSTANCE
-
-
Constructor Details
-
AjQueueAPI
public AjQueueAPI()
-
-
Method Details
-
getInstance
Gets the instance of the ajQueue API- Returns:
- the ajQueue API
-
getSpigotInstance
-
getTimeBetweenPlayers
public abstract double getTimeBetweenPlayers()Gets the time that ajQueue will wait between sending players. In seconds- Returns:
- The time, in seconds, ajQueue will wait between attempting to send players
-
setTimeBetweenPlayers
public abstract void setTimeBetweenPlayers()Updates the time between players. Takes it from the config. -
getServerTimeManager
Gets the server time manager instance, which tracks when players last changed servers- Returns:
- The server time manager instance
-
getConfig
public abstract us.ajg0702.utils.common.Config getConfig()Gets the ajQueue config- Returns:
- the ajQueue config
-
getMessages
public abstract us.ajg0702.utils.common.Messages getMessages()Gets the ajQueue messages manager- Returns:
- the messages manager
-
getAliasManager
Gets the alias manager. Used to get aliases of servers set in ajqueue's config. Note that the alias manager on the free version will just return the server's name- Returns:
- The alias manager
-
getLogic
Gets the priority logic. Note that the priority logic for the free version does nothing.- Returns:
- The priority logic
-
isPremium
public abstract boolean isPremium()Checks if the plugin is the premium version or not.- Returns:
- True if ajQueuePlus, false if ajQueue
-
getPlatformMethods
Gets the PlatformMethods for the platform (e.g. bungee, velocity) The methods in this class do things that the code for each is different on the platform.- Returns:
- the PlatformMethods
-
getLogger
Gets the ajQueue logger. If you are using this, please add your own prefix to it.- Returns:
- The ajQueue logger
-
getEventHandler
Gets the event handler. This class will probably be replaced in the future with an actual event system- Returns:
- the EventHandler
-
getQueueManager
Gets the queue manager. Most things you do interacting with queues will be through this.- Returns:
- the QueueManager
-
getLogicGetter
Gets the logic getter.- Returns:
- The logic getter
-
getProtocolNameManager
Gets the protocol name manager Used to get version names from protocol versions- Returns:
- The ProtocolNameManager
-
getQueueServers
-
shutdown
public abstract void shutdown()Tells ajQueue to shut down. -
getQueueHolderRegistry
-
getPermissionHookRegistry
-
listen
-
getServersUpdateExecutor
-