Permissions 🔒
📄 Introduction
Permissions are essential to control who can access specific features and commands in the xTeams plugin. By managing permissions, you can ensure that only authorized players can create, delete, or modify teams. Below is a table listing all the permissions available in xTeams, their examples, and a brief description of what they allow.
🔒 Plugin Permissions
| 🔒 Permission | 📄 Description |
|---|---|
| xwhitelist.plugin.help | Grants access to the /xwhitelist help command. Players with this permission can view all available commands. |
| xwhitelist.plugin.reload | Allows access to the /xwhitelist reload command. Players with this permission can reload the plugin’s settings. |
| xwhitelist.plugin.info | Grants access to the /xwhitelist info command. Allows the player to view plugin details. |
| xxwhitelist.whitelist.enable | Permission to use /xwhitelist enable |
| xwhitelist.whitelist.disable | Permission to use /xwhitelist disable |
| xwhitelist.whitelist.add | Permission to use /xwhitelist add <player> |
| xwhitelist.whitelist.remove | Permission to use /xwhitelist remove <player> |
| xwhitelist.whitelist.list | Permission to use /xwhitelist list |
| xwhitelist.whitelist.cleanup | Permission to use /xwhitelist cleanup |
| xwhitelist.maintenance.enable | Permission to use /xwhitelist maintenance enable |
| xwhitelist.maintenance.disable | Permission to use /xwhitelist maintenance disable |
| xwhitelist.maintenance.add | Permission to use /xwhitelist maintenance add <player> |
| xwhitelist.maintenance.remove | Permission to use /xwhitelist maintenance remove <player> |
| xwhitelist.maintenance.list | Permission to use /xwhitelist maintenance list |
| xwhitelist.maintenance.cleanup | Permission to use /xwhitelist maintenance cleanup |
| xwhitelist.admin | Full admin rights for all xWhitelist commands and features. Gives the player complete control over the plugin. |
📜 Explanation
- Command Permissions: Each of the listed commands has an associated permission that controls who can use them. For example, if you want a player to be able to add other players to the whitelist, they need the
xwhitelist.whitelist.addpermission. Similarly, if you want them to be able to remove players from the whitelist, they need thexwhitelist.whitelist.removepermission. - Admin Permission: The
xwhitelist.adminpermission provides full access to all plugin features and commands. This permission should be reserved for server administrators to prevent unauthorized changes.