mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
InteractionInformationTerminal implemented correctly
This commit is contained in:
parent
4647751a75
commit
c05bd01835
@ -1,7 +1,9 @@
|
|||||||
package com.eu.habbo.habbohotel.items.interactions;
|
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.items.Item;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
|
import com.eu.habbo.messages.outgoing.habboway.nux.NuxAlertComposer;
|
||||||
import gnu.trove.map.hash.THashMap;
|
import gnu.trove.map.hash.THashMap;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
@ -12,7 +14,8 @@ public class InteractionInformationTerminal extends InteractionCustomValues
|
|||||||
public static final THashMap<String, String> defaultValues = new THashMap<String, String>()
|
public static final THashMap<String, String> defaultValues = new THashMap<String, String>()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
this.put("internalLink", "http://arcturus.pw");}
|
this.put("internalLink", "habbopages/chat/commands");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public InteractionInformationTerminal(ResultSet set, Item baseItem) throws SQLException
|
public InteractionInformationTerminal(ResultSet set, Item baseItem) throws SQLException
|
||||||
@ -26,8 +29,11 @@ public class InteractionInformationTerminal extends InteractionCustomValues
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPickUp(Room room)
|
public void onClick(GameClient client, Room room, Object[] objects) throws Exception {
|
||||||
{
|
super.onClick(client, room, objects);
|
||||||
this.values.clear();
|
|
||||||
|
if(this.values.containsKey("internalLink")) {
|
||||||
|
client.sendResponse(new NuxAlertComposer(this.values.get("internalLink")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user