Cube-Space / geSuit

Plugin suite for BungeeCord
5 stars 8 forks source link

[Enhancement Request] Server access permissions check #41

Open TheLecturer opened 10 years ago

TheLecturer commented 10 years ago

Hi -

Please consider adding the following permission set / check.

Scenario. Server A can be accessed by all players. Server B should only be accessed by certain players (based on a permission).

Today, access via PORTAL can be controlled using permissions to use appropriate portals. But access to a server can be gained using other geSuit plugins.

Example. Player A is on Server A, and is not allowed on Server B. Player B is on Server B, and is allowed on Servers A and B. Player A sends a TPA request to Player B, Player B accepts. Player A is teleported to Server B, bypassing the Portal entry system.

Why not use BungeeCord's server access control in config.yml? Because it is "hard-coded" to the player, and cannot be dynamically controlled via a normal permissions plugin going through Vault (FYI, I use zPermissions).

Request Add a "gesuit.server." (for example) permission which is checked for true before allowing access to a server by geSuit teleport / portals / warps / home.

I hope this makes sense. Many thanks for considering.