Do the disabling in the admin class, so it works with commands like doom & also disable potion spy

This commit is contained in:
Business Goose
2022-05-03 09:44:36 +01:00
parent 54df28022f
commit 5af45a2154
4 changed files with 44 additions and 18 deletions

View File

@ -112,6 +112,14 @@ public class FPlayer
this.player = player;
}
// Ensure admins don't have admin functionality when removed (FS-222)
public void removeAdminFunctionality()
{
this.setCommandSpy(false);
this.setAdminChat(false);
this.setFuckoffRadius(0);
}
public boolean isOrbiting()
{
return isOrbiting;