mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-08-19 16:55:36 +02:00
43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
![]() |
package com.eu.habbo.habbohotel.items.interactions.wired.conditions;
|
||
|
|
||
|
import com.eu.habbo.habbohotel.items.Item;
|
||
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||
|
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
||
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||
|
|
||
|
import java.sql.ResultSet;
|
||
|
import java.sql.SQLException;
|
||
|
|
||
|
public class WiredConditionHabboNotRank extends WiredConditionHabboWearsBadge
|
||
|
{
|
||
|
public WiredConditionHabboNotRank(ResultSet set, Item baseItem) throws SQLException
|
||
|
{
|
||
|
super(set, baseItem);
|
||
|
}
|
||
|
|
||
|
public WiredConditionHabboNotRank(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells)
|
||
|
{
|
||
|
super(id, userId, item, extradata, limitedStack, limitedSells);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff)
|
||
|
{
|
||
|
Habbo habbo = room.getHabbo(roomUnit);
|
||
|
|
||
|
if (habbo != null)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return habbo.getHabboInfo().getRank().getId() < Integer.valueOf(this.badge);
|
||
|
}
|
||
|
catch (Exception e)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
}
|
||
|
}
|