mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-10-24 19:53:04 +02:00
35 lines
1.0 KiB
Java
35 lines
1.0 KiB
Java
|
package com.eu.habbo.habbohotel.commands;
|
||
|
|
||
|
import com.eu.habbo.Emulator;
|
||
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||
|
import com.eu.habbo.messages.outgoing.generic.alerts.StaffAlertWithLinkComposer;
|
||
|
|
||
|
public class HotelAlertLinkCommand extends Command
|
||
|
{
|
||
|
public HotelAlertLinkCommand()
|
||
|
{
|
||
|
super("cmd_hal", Emulator.getTexts().getValue("commands.keys.cmd_hal").split(";"));
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean handle(GameClient gameClient, String[] params) throws Exception
|
||
|
{
|
||
|
if (params.length < 3)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
String url = params[1];
|
||
|
String message = "";
|
||
|
for (int i = 2; i < params.length; i++)
|
||
|
{
|
||
|
message += params[i];
|
||
|
message += " ";
|
||
|
}
|
||
|
|
||
|
message += "\r\r-<b>" + gameClient.getHabbo().getHabboInfo().getUsername() + "</b>";
|
||
|
|
||
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new StaffAlertWithLinkComposer(message, url).compose());
|
||
|
return true;
|
||
|
}
|
||
|
}
|