Check for bypass permission removal
Magi1053 opened this issue · 3 comments
Magi1053 commented
Even though the config option for kick-online-players: true
, if a player online has their maintenance.bypass permission removed, they do not get kicked from the server.
kennytv commented
I simply do a permission check via Bukkit/Bungee/... API - your permission plugin will have to handle the refreshing itself
Magi1053 commented
You only check when the user joins though right, there are no recurring checks to see if the user still has permissions
kennytv commented
Why would I? 👀 The kick is only applied once: When maintenance is initially enabled with online players (and then of course blocking new connections). Doing a check every x seconds sounds rather out of scope here and is better done by using API of Maintenance and the permission plugin itself