mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
Added walking onto InteractionInformationTerminal
This commit is contained in:
parent
f89a0b318d
commit
0c05af80c2
@ -3,6 +3,8 @@ package com.eu.habbo.habbohotel.items.interactions;
|
||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||
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 com.eu.habbo.messages.outgoing.habboway.nux.NuxAlertComposer;
|
||||
import gnu.trove.map.hash.THashMap;
|
||||
|
||||
@ -36,4 +38,14 @@ public class InteractionInformationTerminal extends InteractionCustomValues
|
||||
client.sendResponse(new NuxAlertComposer(this.values.get("internalLink")));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWalk(RoomUnit roomUnit, Room room, Object[] objects) throws Exception {
|
||||
super.onWalk(roomUnit, room, objects);
|
||||
|
||||
Habbo habbo = room.getHabbo(roomUnit);
|
||||
if(habbo != null && this.values.containsKey("internalLink")) {
|
||||
habbo.getClient().sendResponse(new NuxAlertComposer(this.values.get("internalLink")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user