Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Text;
- using System.Collections.Generic;
- using Plus.HabboHotel.Rooms;
- using Plus.HabboHotel.GameClients;
- using Plus.Communication.Packets.Outgoing.Rooms.Chat;
- using Plus.HabboHotel.Users;
- namespace Plus.HabboHotel.Rooms.Chat.Commands.User
- {
- class Color2Command : IChatCommand
- {
- public string PermissionRequired
- {
- get { return "command_color2"; }
- }
- public string Parameters
- {
- get { return ""; }
- }
- public string Description
- {
- get { return "off/red/orange/yellow/green/blue/purple/pink"; }
- }
- public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
- {
- if (Params.Length == 1)
- {
- Session.SendWhisper("Oups, vous devez choisir la couleur que vous prévoyez d'utiliser!");
- return;
- }
- string chatColour = Params[1];
- string Colour = chatColour.ToUpper();
- switch (chatColour)
- {
- case "none":
- case "black":
- case "off":
- Session.GetHabbo().chatColour = "";
- Session.SendWhisper("Votre couleur de chat est désactivée");
- break;
- case "blue":
- case "red":
- case "orange":
- case "yellow":
- case "green":
- case "purple":
- case "pink":
- Session.GetHabbo().chatColour = chatColour;
- Session.SendWhisper("Vous utilisez maintenant : " + Colour + "");
- break;
- default:
- Session.SendWhisper("La couleur " + Colour + " n'existe pas!");
- break;
- }
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement