Removed rank check from kicking out of rooms.

This commit is contained in:
KrewsOrg 2019-04-29 01:47:38 +01:00
parent f0a4acf486
commit 948571cd81

View File

@ -28,7 +28,7 @@ public class RoomUserKickEvent extends MessageHandler
if(target == null)
return;
if (target.hasPermission(Permission.ACC_UNKICKABLE) || target.getHabboInfo().getRank().getId() > this.client.getHabbo().getHabboInfo().getRank().getId())
if (target.hasPermission(Permission.ACC_UNKICKABLE))
{
this.client.sendResponse(new RoomUserWhisperComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.error.cmd_kick.unkickable").replace("%username%", target.getHabboInfo().getUsername()), this.client.getHabbo(), this.client.getHabbo(), RoomChatMessageBubbles.ALERT)));
return;