Advertisement
Guest User

EHA

a guest
Jul 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
  2. using Plus.HabboHotel.GameClients;
  3. using System;
  4. using Plus.HabboHotel.Users;
  5. using Plus.Database.Interfaces;
  6.  
  7. namespace Plus.HabboHotel.Rooms.Chat.Commands.Events
  8. {
  9. internal class EhaCommand : IChatCommand
  10. {
  11. public string PermissionRequired
  12. {
  13. get
  14. {
  15. return "command_eha";
  16. }
  17. }
  18. public string Parameters
  19. {
  20. get
  21. {
  22. return "%message%";
  23. }
  24. }
  25. public string Description
  26. {
  27. get
  28. {
  29. return "Send a hotel alert for your event!";
  30. }
  31. }
  32. public void Execute(GameClient Session, Room Room, string[] Params)
  33. {
  34.  
  35. if (Session != null)
  36. {
  37. if (Room != null)
  38. {
  39. string Message = "" + "Hey! There's an event going on right now you might want to head down there to win some GOTW Points & prizes!";
  40. if (Params.Length > 2)
  41. Message = CommandManager.MergeParams(Params, 1);
  42.  
  43. PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Zebbo Events (Supervised)", Message + "\r\n- <b>" + Session.GetHabbo().Username + "</b>\r\n<i></i>", "figure/" + Session.GetHabbo().Username + "", "Go to \"" + Session.GetHabbo().CurrentRoom.Name + "\"!", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));
  44. }
  45. }
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement