Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: Plus.HabboHotel.Rooms.Chat.Commands.User.StartQuickPollCommand
  3. // Assembly: Blob, Version=2.0.3.1, Culture=neutral, PublicKeyToken=null
  4. // MVID: DA0DDDAE-C6AA-4830-888C-C4921CCE0A3E
  5. // Assembly location: C:\Users\Matheus\Downloads\fff\Blob Emulador - PacoteHP\Emulador\Blob.exe
  6.  
  7. using Plus.HabboHotel.GameClients;
  8.  
  9. namespace Plus.HabboHotel.Rooms.Chat.Commands.Administrator
  10. {
  11. internal class StartQuickPollCommand : IChatCommand
  12. {
  13. public string PermissionRequired
  14. {
  15. get
  16. {
  17. return "";
  18. }
  19. }
  20.  
  21. public string Parameters
  22. {
  23. get
  24. {
  25. return "%question% [%time%]";
  26. }
  27. }
  28.  
  29. public string Description
  30. {
  31. get
  32. {
  33. return "Começe a Pollar!";
  34. }
  35. }
  36.  
  37. public void Execute(GameClient Session, Room Room, string[] Params)
  38. {
  39. if (!Room.CheckRights(Session, false, true))
  40. return;
  41. if (Params.Length < 2)
  42. {
  43. Session.SendWhisper("foda-se", 33);
  44. }
  45. else
  46. {
  47. string question = CommandManager.MergeParams(Params, 1);
  48. int duration = 100000000;
  49. Room.GenerateQPoll(duration, question);
  50. Room.QuickPoll.Start();
  51. }
  52. }
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement