TShock/TShock — Issue #392: Changing user groups live does not effect them until next login.
Author: atom0s
Created: 2012-02-19 05:43:35+00:00
State: open

If a user, say an admin, is abusing power and you need to remove their permissions, you can alter them with for example:
/user group playername default

But the change will not effect the player until they relogin. This allows them to continue their abusing of power or whatever may be happening until they login again. (Due to the lack of permission on the server if the player is an admin they cannot be removed without extra steps to modding a group that shouldn't be required.)

Instead here is a patch to log the user out and reset their permissions to the default group when their group has been changed:
http://pastebin.com/8wkUnMds