A Better Alternative to Whitelist
A Minecraft plugin that restricts non-whitelisted players to spectator mode with movement limitations.
Download Latest Stable Version
Download Latest Bleeding Edge Version
⚠️ You will need to be logged into GitHub to download artifacts from GitHub Actions.
guestviewer.bypass permission are automatically set to spectator modeguestviewer.bypass permission are automatically set to survival modeguestviewer.freeroam)guestviewer.chat permissionplugins directory/reloadguestviewer.bypass - Players with this permission play normally (default: op)guestviewer.admin - Required to use admin commands like reload (default: op)guestviewer.freeroam - Allows spectators to roam freely within the configured distance of world spawn (default: false)guestviewer.chat - Allows spectators to use the chat (default: false)/guestviewer or /gview - Displays plugin info/guestviewer reload or /gview reload - Reloads the plugin configurationThe plugin's configuration is stored in plugins/GuestViewer/config.yml:
# Maximum distance (in blocks) a spectator can move from their target
max-distance: 100
# Messages
messages:
# Message shown to players when they join and are set to spectator mode
spectator-join: "&cYou are not whitelisted! You have been set to spectator mode."
# Message shown to players when they join and have the bypass permission
player-join: "&aWelcome back! You are playing in survival mode."
# Message shown when a spectator tries to move beyond the max distance
distance-warning: "&cYou cannot move more than 100 blocks from the player you are spectating!"
# Message shown when a spectator without chat permission tries to chat
chat-restricted: "&cYou don't have permission to chat. You are in spectator mode."
# Chat settings
chat:
# Whether to restrict chat for spectators without permission
restrict-spectator-chat: true
# Broadcast notifications
broadcast:
# Whether to broadcast when a player with bypass permission joins
player-join-enabled: true
player-join-message: "&e%player% &ahas joined the server."
# Whether to broadcast when a player with bypass permission leaves
player-quit-enabled: true
player-quit-message: "&e%player% &chas left the server."
# Whether to broadcast when a spectator joins
spectator-join-enabled: true
spectator-join-message: "&7Guest &e%player% &7has joined as a spectator."
# Whether to broadcast when a spectator leaves
spectator-quit-enabled: true
spectator-quit-message: "&7Guest &e%player% &7has left the server."
guestviewer.bypass permissionguestviewer.freeroam permission can move within the configured radius of world spawnguestviewer.chat permission cannot use the chatIf you encounter any issues or have suggestions, please open an issue on the GitHub repository.
This plugin is released under the MIT License.
The project uses Maven for build automation. To build from source:
mvn clean package
The built jar file will be in the target directory.
This project uses GitHub Actions to automatically build the plugin. The workflow: