Skip to content

An automatic player transfer throughout multiple lobbies with a player limit for each lobby.

License

Notifications You must be signed in to change notification settings

devgocri/LobbyPlayerLimit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


LobbyPlayerLimit

A plugin which adds an automatic player transfer throughout multiple lobbies when you do /lobby with a player limit for each lobby.

If you didn’t know, a lobby is where people spawn and they can join minigames, teleport to places etc. It is the starting point of a server as players spawn there for the first time. It’s practically a hub :D


Downloads

How to setup?

Drop the plugin into your server and start-and-stop it. Navigate to your plugin_data folder and find lobbies.yml.

Now, add the names of the worlds of your lobbies after lobbies:. You can add as many as you want as long as they follow the - "Example" format. Make sure they have the same amount of indentation!

Example:

lobbies:
 - "world"
 - "worldone"

Then, add your fallback lobby world after fallback:". Check the comments in the config if you don’t know what a fallback lobby is.

Example:

fallback: "fallbackworld"

After that, replace limit: 0 with limit: AMOUNT OF PLAYERS PER LOBBY.

Add your “lobby full” message after lobbyfullmsg:.

Now, restart the server and you're all done!

Make yourself immune to the system

Whenever you join the server, you will immediately be joined to a lobby with an amount of players less than your limit. If you want to disable this, you have to remove the lobbyplayerlimit.lobby permission from yourself.

Assuming you have PurePerms installed and the server is online, run this command in console or in game: /unsetuperm PLAYERNAME lobbyplayerlimit.lobby Note: Doing this also disables your ability to run /lobby.

Now you will be immune to the system!

To add yourself back to the system, assuming you have PurePerms installed and the server is online, run this command in console or in game: /setuperm PLAYERNAME lobbyplayerlimit.lobby

Commands

/lobby - Teleport to a lobby (LobbyPlayerLimit main command)

Permissions

lobbyplayerlimit.lobby - Ability to run /lobby and be teleported to a lobby automatically on join.

Report a bug/leave a suggestion!

Feel free to tell me here!


This plugin was made with ❤️ by BestCodrEver for Pumpedpixel

About

An automatic player transfer throughout multiple lobbies with a player limit for each lobby.

Topics

Resources

License

Stars

Watchers

Forks

Languages