Sueta

QueueLib

1.0.2

A simple library for making queues.

·Plugin


QueueLib is a simple library plugin for creating queues for your minecraft server. At the moment it is mainly for plugin development, but in the future I will add commands and tools to make queues in-game without any coding knowledge.

Check out the test plugin here to see an example of what you can do with queuelib:
https://www.spigotmc.org/resources/queuelibtest.67190/

Modules:
QueueLib-Commands https://www.spigotmc.org/resources/queuelib-commands.67191/ - Adds some useful commands to make using queuelib easier.

Queue [name] = new Queue (); - creates a new queue.

addQueue ( Player target) - adds a player into a queue

getQueue ( Player target) - returns true or false depending on whether the target player is in the queue.

getQueuePlayer ( Player target) - returns the target player if they are in the queue, if the player isn't in the queue, it will return null.

getQueuePos ( Player target) - if the queue contains the player, it will return the position in the queue that the player is in, if not, it will return null.

removeQueue ( Player target) - removes the target player from the queue.

getFirstPlace () - returns the player in first place.

isPlayerFirst ( Player target) - returns true or false depending on whether the player is in first place or not.

/queuelib - sends the sender a message displaying other commands(none for now, made for use in the future).

If you have any suggestions or ideas for this plugin make sure to tell me below!
Thanks and hope you enjoy it!

Similar projects

Plugin →