Fixed FS-93

- Players no longer need to relog, just need to be opped to get permissions.
- Removed redundant PlayerJoinEvent code as it's already been executed (See RankManager class).
This commit is contained in:
Nathan Curran 2021-03-16 20:21:31 +11:00
parent b9c1970d20
commit eb05b05042
No known key found for this signature in database
GPG Key ID: B3A964B30C2E56B8
3 changed files with 2 additions and 6 deletions

View File

@ -40,6 +40,7 @@ public class Command_deop extends FreedomCommand
matchedPlayerNames.add(player.getName());
player.setOp(false);
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
plugin.rm.updateDisplay(player);
}
}
}

View File

@ -20,6 +20,7 @@ public class Command_deopall extends FreedomCommand
{
player.setOp(false);
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
plugin.rm.updateDisplay(player);
}
return true;

View File

@ -117,10 +117,4 @@ public class PermissionManager extends FreedomService
setPermissions(player);
}
}
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerJoin(PlayerJoinEvent event)
{
setPermissions(event.getPlayer());
}
}