Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Text;
  4. using System.Collections.Generic;
  5.  
  6. using Plus.HabboHotel.Rooms;
  7. using Plus.HabboHotel.GameClients;
  8. using Plus.Communication.Packets.Outgoing.Rooms.Chat;
  9. using Plus.HabboHotel.Users;
  10.  
  11. namespace Plus.HabboHotel.Rooms.Chat.Commands.User
  12. {
  13. class Color2Command : IChatCommand
  14. {
  15.  
  16. public string PermissionRequired
  17. {
  18. get { return "command_color2"; }
  19. }
  20. public string Parameters
  21. {
  22. get { return ""; }
  23. }
  24. public string Description
  25. {
  26. get { return "off/red/orange/yellow/green/blue/purple/pink"; }
  27. }
  28. public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
  29. {
  30. if (Params.Length == 1)
  31. {
  32. Session.SendWhisper("Oups, vous devez choisir la couleur que vous prévoyez d'utiliser!");
  33. return;
  34. }
  35. string chatColour = Params[1];
  36. string Colour = chatColour.ToUpper();
  37. switch (chatColour)
  38. {
  39. case "none":
  40. case "black":
  41. case "off":
  42. Session.GetHabbo().chatColour = "";
  43. Session.SendWhisper("Votre couleur de chat est désactivée");
  44. break;
  45. case "blue":
  46. case "red":
  47. case "orange":
  48. case "yellow":
  49. case "green":
  50. case "purple":
  51. case "pink":
  52. Session.GetHabbo().chatColour = chatColour;
  53. Session.SendWhisper("Vous utilisez maintenant : " + Colour + "");
  54. break;
  55. default:
  56. Session.SendWhisper("La couleur " + Colour + " n'existe pas!");
  57. break;
  58. }
  59. return;
  60. }
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement