Package us.ajg0702.queue.api.premium
Interface Logic
-
public interface Logic
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getHighestPriority(QueueServer queueServer, AdaptedServer server, AdaptedPlayer player)
PermissionGetter
getPermissionGetter()
Gets the permissionGetter.static int
getUnJoinablePriorities(QueueServer queueServer, AdaptedServer server, AdaptedPlayer player)
boolean
hasAnyBypass(AdaptedPlayer player, java.lang.String server)
boolean
isPremium()
Returns if the plugin is premium or notboolean
playerDisconnectedTooLong(QueuePlayer player)
The logic for checking if a player has been disconnected for too longQueuePlayer
priorityLogic(QueueServer queueServer, AdaptedPlayer player, AdaptedServer server)
The priority logic that is executed if the plugin is premium.
-
-
-
Method Detail
-
isPremium
boolean isPremium()
Returns if the plugin is premium or not- Returns:
- True if premium, false if not
-
priorityLogic
QueuePlayer priorityLogic(QueueServer queueServer, AdaptedPlayer player, AdaptedServer server)
The priority logic that is executed if the plugin is premium.- Parameters:
queueServer
- The server/group name that is being queued forplayer
- The player that is being queuedserver
- The server/group name that is being queued for
-
playerDisconnectedTooLong
boolean playerDisconnectedTooLong(QueuePlayer player)
The logic for checking if a player has been disconnected for too long- Parameters:
player
- The player to check- Returns:
- true if the player has been disconnected for too long and should be removed from the queue
-
getPermissionGetter
PermissionGetter getPermissionGetter()
Gets the permissionGetter. Only available on ajQueuePlus- Returns:
- the permission getter
-
getHighestPriority
int getHighestPriority(QueueServer queueServer, AdaptedServer server, AdaptedPlayer player)
-
getUnJoinablePriorities
static int getUnJoinablePriorities(QueueServer queueServer, AdaptedServer server, AdaptedPlayer player)
-
hasAnyBypass
boolean hasAnyBypass(AdaptedPlayer player, java.lang.String server)
-
-