Whitelist for Geyser
This is a plugin I originally wrote for my own personal use. It overrides the built-in whitelist system.
It's meant to be used with offline servers or with servers implementing Geyser and Floodgate.
The problem with the built-in whitelist command is that it tries to add the Mojang UUID to the whitelist, which won't work for offline mode servers or for bedrock players on a Floodgated Geyser server. Typically in these instances you would have to manually change the UUID in the "whitelist.json" file or disable the whitelist, allow the player to join, and then add them to the whitelist and turn it back on.
This plugin works by adding a username to the whitelist with no UUID, and then once the player joins, it replaces the username with the players UUID. This is preferable to turning off your whitelist while waiting for the player to join.
If you have whitelist currently enabled when installing this plugin, it will import the players from your current whitelist and disable it.
Commands
/whitelist: displays all available commands
/whitelist add: adds players to the whitelist. Separate the usernames with a space.
/whitelist addUUID: adds a UUID to the whitelist. You can only add one at a time as of now.
/whitelist remove: removes players from the whitelist. Separate the usernames with a space.
/whitelist removeUUID: removes a UUID from the whitelist. You can only remove one at a time as of now
/whitelist list: Lists all of the players who have been whitelisted. If you added a UUID and the player has not yet played on your server, it will simply show "UUID:" followed by the UUID that you entered
Where are the whitelisted players stored at???
In reply to CodingFox_OwO:
in the plugins folder you'll see a Whitelist folder with a yml file
Please add this line to the plugin.yml:
api-version: 1.16
It will make the plugin more compatible with versions 1.13-1.18.1 and still retain compatibility with 1.12 and below.
In reply to red050911:
I was under the impression that with the advent of the "api-version" tag, using said tag would render the plugin incompatible with older versions.
It would be monumental for this plugin to get an update as to change the default "You are not whitelisted message".
This is great! However, would you please add an
api-version
to plugin.yml so that it's not marked as a "legacy plugin"? It being marked as a legacy plugin makes it so that logging plugins can't find new blocks like Crying Obsidian.Is there a permissions node for this?
Thank you!
Can i change the not whitelisted message
Source code? Pls?
Hey! so while setting this up I came into a few issues... To be clear I do /whitelist add [Xbox Gamertag] and then once someone with that name joins it replaces their name with the UUID. For example, i would do myself (rainbowcliff) and it would just disconnect me because I'm "not whitelisted".
Because this is for Geyser, I think you actually have to do /whitelist add *<gamertag>
The * indicates a Bedrock Edition user.
thank you very much, helped me a lot, keep updating please