public override void Execute(GameCharacter caller, string[] args) { if (args.Length < 2) { ShowSyntax(caller); } else { var message = args.Fuse(1); switch (args[0].ToLower()) { case "-map": caller.Map.Send(GamePackets.Notify(message)); break; case "-channel": caller.Client.Server.Send(GamePackets.Notify(message)); break; case "-world": caller.Client.Server.World.Send(GamePackets.Notify(message)); break; default: ShowSyntax(caller); break; } } }
public override void Execute(GameCharacter caller, string[] args) { if (args.Length < 1) { ShowSyntax(caller); } else { var message = args.Fuse(); caller.Client.Server.World.Send(GamePackets.Notify(message)); } }
public void UpdateTicker() => Send(GamePackets.Notify(TickerMessage, NoticeType.ScrollingText));