Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
- using Plus.HabboHotel.GameClients;
- using System;
- using Plus.HabboHotel.Users;
- using Plus.Database.Interfaces;
- namespace Plus.HabboHotel.Rooms.Chat.Commands.Events
- {
- internal class EhaCommand : IChatCommand
- {
- public string PermissionRequired
- {
- get
- {
- return "command_eha";
- }
- }
- public string Parameters
- {
- get
- {
- return "%message%";
- }
- }
- public string Description
- {
- get
- {
- return "Send a hotel alert for your event!";
- }
- }
- public void Execute(GameClient Session, Room Room, string[] Params)
- {
- if (Session != null)
- {
- if (Room != null)
- {
- string Message = "" + "Hey! There's an event going on right now you might want to head down there to win some GOTW Points & prizes!";
- if (Params.Length > 2)
- Message = CommandManager.MergeParams(Params, 1);
- 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));
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement