From c05bd018359e55c7cac6b6e227a5ddd4cf18318b Mon Sep 17 00:00:00 2001 From: Beny Date: Sun, 12 May 2019 11:48:56 +0100 Subject: [PATCH] InteractionInformationTerminal implemented correctly --- .../InteractionInformationTerminal.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java index ac43d633..8a11945f 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java @@ -1,7 +1,9 @@ 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.messages.outgoing.habboway.nux.NuxAlertComposer; import gnu.trove.map.hash.THashMap; import java.sql.ResultSet; @@ -12,7 +14,8 @@ public class InteractionInformationTerminal extends InteractionCustomValues public static final THashMap defaultValues = new THashMap() { { - this.put("internalLink", "http://arcturus.pw");} + this.put("internalLink", "habbopages/chat/commands"); + } }; public InteractionInformationTerminal(ResultSet set, Item baseItem) throws SQLException @@ -26,8 +29,11 @@ public class InteractionInformationTerminal extends InteractionCustomValues } @Override - public void onPickUp(Room room) - { - this.values.clear(); + public void onClick(GameClient client, Room room, Object[] objects) throws Exception { + super.onClick(client, room, objects); + + if(this.values.containsKey("internalLink")) { + client.sendResponse(new NuxAlertComposer(this.values.get("internalLink"))); + } } }