mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Add %ESCAPE
This commit is contained in:
parent
39057e59ab
commit
04c56a669d
2 changed files with 15 additions and 0 deletions
|
@ -123,7 +123,20 @@ namespace HISP.Game.Chat
|
|||
|
||||
return true;
|
||||
}
|
||||
public static bool Escape(string message, string[] args, User user)
|
||||
{
|
||||
if (args.Length <= 0)
|
||||
return false;
|
||||
if (!user.Administrator || !user.Moderator)
|
||||
return false;
|
||||
|
||||
|
||||
user.Teleport(Map.ModIsleX, Map.ModIsleY);
|
||||
|
||||
byte[] chatPacket = PacketBuilder.CreateChat(Messages.FormatAdminCommandCompleteMessage(message.Substring(1)) + Messages.ModIsleMessage, PacketBuilder.CHAT_BOTTOM_LEFT);
|
||||
user.LoggedinClient.SendPacket(chatPacket);
|
||||
return true;
|
||||
}
|
||||
public static bool Stickbug(string message, string[] args, User user)
|
||||
{
|
||||
if (args.Length <= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue