Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.
/ oldqueue Public archive
forked from IPVP-MC/queue

Control player connection frequency to servers in a Bungeecord network

License

Notifications You must be signed in to change notification settings

EarthMC/oldqueue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

queue

A simple BungeeCord plugin that controls join rate of players to individual servers.

Adding a player to a queue

All servers defined in the BungeeCord instance have a queue that players can be added to programmatically. The plugin only enforces specific players joining the queue and does not override the behaviors of other plugins or commands such as /server.

Players can be added to a specific server queue through the Plugin Messaging Channel. The plugin registers and listens for commands on the Queue channel, so plugins must register the outgoing channel appropriately.

The Join subchannel is used to add a player to a specific queue and takes the following arguments:

  • Player UUID
  • Target server

An example of a helper method to send a player to a queue is:

/**
 * Connects a player to a servers queue.
 * 
 * @param player Player to connect
 * @param target Queue to join
 */
public void joinServerQueue(Player player, String target) {
    ByteArrayDataOutput out = ByteStreams.newDataOutput();
    out.writeUTF("Join");
    out.writeUTF(player.getUniqueId().toString());
    out.writeUTF(target);
    player.sendPluginMessage(this, "Queue", out.toByteArray());
}

License

This software is available under the following licenses:

  • MIT

About

Control player connection frequency to servers in a Bungeecord network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%