Added Check for Kick Permission.

This commit is contained in:
SenpaiDipper 2022-01-02 04:16:22 +00:00
parent c78813a405
commit da789fcc1e

View File

@ -30,7 +30,9 @@ public class SoftKickCommand extends Command {
final Room room = gameClient.getHabbo().getHabboInfo().getCurrentRoom();
if (room != null) {
room.kickHabbo(habbo, false);
if (!(habbo.hasPermission(Permission.ACC_UNKICKABLE) || habbo.hasPermission(Permission.ACC_SUPPORTTOOL) || room.isOwner(habbo))) {
room.kickHabbo(habbo, false);
}
}
}
return true;