LobbyAPI
What is LobbyAPI
LobbyAPI was created to manage multiple worlds and allow players to teleport to those worlds using user friendly menu, while being able to be fully configurable.Just by using the commands /lobby or /hub, the player has access to all worlds specified in the menu, where when they click on the block the represents a world they are teleported to location given to that world. LobbyAPI has tons of configurable methods to change the color of the block in the menu, the amount of that block, what spot it is located, and the description of the world, who can see or go to a world, along with the methods for how the world will interact with other worlds.
How to create and manage worlds
If you a re new to LobbyAPI, you can find a guide how to set up worlds at this link:
https://dev.bukkit.org/projects/lobbyapi/pages/events/basic-command-tutorial
Features
- Allows players to teleport from world to world.
- Menu is fully customizable
- Shows all players in given world
- Allows players to teleport from Server to Server (for bungee servers only).
- Allows other plugins to access when a player teleports to a new world or clicks on a new world in the menu.
- Works on all versions of Bukkit
- Plugin support LobbyAPI is just the back-bone for the plugins that will add the worlds. All that is needed to add a world to the menu will be under Developer Information.
Icon Customization is here!
Now you can easily customize the materials, description, and other attributes for each world registered!
Commands
/Lobby | Opens up the WorldMenu |
/Hub | Opens up the WorldMenu |
/LobbyApi | Allows you to change some properties of LobbyAPI |
/LobbyApi addWorld [world] [slot] [x][y][z]..... | Adds a world to the LobbyAPI menu |
/LobbyApi removeWorld [world] | Removes a world to the LobbyAPI menu |
/LobbyApi addServer [server-name] [slot] | Adds a server to the LobbyAPI menu |
/LobbyApi removeServer [server-name] | Removes a server to the LobbyAPI menu |
/LobbyApi listServers | Shows a list for all the servers |
/LobbyApi listWorlds |
Shows a list for all the worlds |
/LobbyApi setDefaultWeather [world] [weather] | Sets the default weather for a world. Choices are NORMAL, NO_RAIN, and ALWAYS_RAINING |
/LobbyApi addJoiningCommand [world] [command] | Adds a command that should be sent when a player joins that world. |
/LobbyApi removeJoiningCommand [world] [command id] | Removes a command that should be sent when a player joins that world. |
/LobbyApi listJoiningCommands [world] | Lists all the commands that are sent when a player joins that world. |
/LobbyApi listJoiningCommands [world] | Lists all the commands that are sent when a player joins that world. |
(There are a few more commands, but I've had issues recreating the table :p):
/LobbyAPI generateNetherAndEndFor", "Generates a nether and end world for the world"
/LobbyAPI setMainLobby", "Changes the default spawn world"
/LobbyAPI removeMainLobby", "Removes default spawn world"
/LobbyAPI setMaterial", "Sets the material icon for a world"
/LobbyAPI setDisplayName", "Changes a display name for a world."
/LobbyAPI setDescription", "Sets the description for a world"
/LobbyAPI hideWorld", "Hides a world from the menu."
/LobbyAPI showWorld", "Shows the world from the menu, if previously hidden"
/LobbyAPI setWorldSelector", "Sets the word selector to be the item in the sender's hand"
/LobbyAPI removeWorldSelector", "removes word selector"
/LobbyAPI setGamemode", "Sets the description for a world"
/LobbyAPI changeSpawn", "Changes the spawn location for a world"
/LobbyAPI version", "Gets the version of the plugin"
/LobbyAPI setvoidlooping", "Enables or disables teleporting players to spawn if they are in the void"
/LobbyAPI setdisablehealthandhunger", "Enables or disables health or hunger changes for worlds"
/LobbyAPI setlocationsaving", "Enables or disables location saving when a player leaves the world"
/LobbyAPI setcanuseportals", "Enables or disables portals for certain worlds."
/LobbyAPI addDefaultItem", "Adds the item in your hand to the list of default items."
/LobbyAPI removeDefaultItem", "Adds the item in your hand to the list of default items."
/LobbyAPI listDefaultItems", "Adds the item in your hand to the list of default items."
/LobbyAPI addDecor", "Adds a decor item to the hub menu"
/LobbyAPI removeDecor", "Removes a decor item."
/LobbyAPI toggleWhitelist", "Toggles whether the world is restricted to only certain players"
/LobbyAPI addToWhitelist", "Adds a player to a world's whitelist"
/LobbyAPI removeFromWhitelist", "Adds a player to a world's whitelist"
/LobbyAPI listWhitelist", "Adds a player to a world's whitelist"
/LobbyAPI goto", "Teleports the player to the spawn of a world"
Permissions:
- lobbyapi.*
- ---Gives access to all lobbyapi features
- lobbyapi.user
- --Gives all commands that users should have. If you do not know what permissions to give to your players, just give them this.
- lobbyapi.commands
- --Only gives access to commands
- lobbyapi.hub
- --Gives access to the /hub commands.
- lobbyapi.bypassworldlimits
- --Gives players the ability to join worlds that are private, or have gone over the player limit
Dependencies and Compatibility
LobbyAPI does not depend on any other plugin, and should work with all other plugins. If you receive any errors from my plugin or features or not enabled for you, please make a comment or ticket of this page.
Developer Information
If you want to register a world through a plugin, use the guide HERE . Call this method in onEnable method to register worlds when the plugin loads.
To add a BungeeServer to the menu, all you need is this line: LobbyAPI.registerBungeeServer(String bungeeServersName, Description, WoolColor);
How to Install
- Drop this plugin into you plugins folder
- Find/Create a plugin that will allow you get to your world
- Restart your server
This plugin uses bStats:
bStats is a metrics service that allows me to to see how many servers use my plugins, how many players they have, and which countries use my plugin the most. All information is anonymized, so no information can be directly linked to you, and instead is added to the average of all severs that use the plugin.
[13:58:57] [Server thread/WARN]: [LobbyAPI] Plugin LobbyAPI v3.7.88 generated an exception whilst handling plugin message
Whenever I add a new world with /lobbyapi addworld (world name) ~ ~ ~, it works until I restart or do the /reload command
Edit: Another thing, i just found out that pressure plates open the world selector GUI. Is there a way to turn this off?
In reply to PenguinsWillLickYou:
In reply to Zombie_Striker_bukkit:
1. no there aren't any errors in the console, and a full reinstall of the plugin seemed to work.
2. I tried using other items for the world selector and it still popped up. I reinstalled the plugin but it was still activated by pressure plates. I looked into one plugin called "openinv", which lets you open other player's inventories, which I have installed in my server. Maybe it thought that the world selector was a players inventory. But i went through the plugin page and the github and found nothing about pressure plate activated inventories.
So whenever i defeat the ender dragon i get the following error about entity (torch) colliding with end portal, and i have narrowed it down through trial and error to your plugin. error below
https://pastebin.com/5QirKTs7
In reply to InfidelEraser:
Are there any errors in the console before the server crashes? Could you post the full error log?
Also, does this only happen for a certain world's end, or does it happen to the end for all worlds? Is there anything specific I would need to know to replicate the problem?
In reply to Zombie_Striker_bukkit:
it happens in all world's end, and theres only warnings about how lobbyapi cant load inventory
In reply to InfidelEraser:
This has been fixed in V3.7.91. Turns out there is some conflict in 1.14 where torches can break inside the portal, which creates some error. In the new update, those torches will be removed before they can crash the server.
In reply to Zombie_Striker_bukkit:
i cant download the new version from the bukkit page, and Aupdater doesnt work anymore
In reply to InfidelEraser:
It looks like the file wasn't approved by the time you posted. It has not been approved, and you should see it.
when i go from end to overworld through the bedrock basin thing, my inventory is completly cleared, and i get a lobbyapi error with loading inventory
error below
https://pastebin.com/7JWRN5de
In reply to InfidelEraser:
This error should be fixed in the new update.
Having an issue with the nether.
For example, If I enter the nether to gather lava. I get the lava but when I leave
and go back to the normal world the bucket is empty again.
Any fix?
In reply to Forge_User_25530277:
This is most likely a save-name issue. First, check to make sure the nether is correctly registered by going into the normal world and using /lobbyapi generateNetherAndEndFor <world>, and see if that fixes the issue. If that does not work, check the config.yml to make sure that the nether is not registered individually (only the regular world should be registered in the config.).
i am trying to set a compass as the default item and world selector for my hub but whenever i leave and rejoin the hub the item isnt in my inventory. i did /lapi setworldselector then /lapi adddefaultitem Hub but it isnt working. 1.14.2 btw
resolved with update
How can I change the position where the world is? I have it in the 6th slot but i want it in the 5th
When I add a new world, it crashes my server. It says the server tick was 60.00 and the max 0.05. Creating a crash file. Any solutions?
In reply to miguelthegamer0:
Are there any other error messages that appear when you try to create a new world? Also, what minecraft version are you using (1.14? 1.13?)
In reply to Zombie_Striker_bukkit:
1.14
In reply to Zombie_Striker_bukkit:
It is fixed thanks!