Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Refresh : IChatCommand
- {
- public void Invoke(Kernel.Network.Session session, params object[] arguments)
- {
- if (arguments.Length < 1)
- {
- // Need more arguments
- }
- else
- {
- switch (arguments[0].ToString())
- {
- case "catalogue":
- {
- HabboEnvironment.Habbo.ShopManager = new Shop.ShopManager();
- HabboEnvironment.Habbo.SetCacheComponent("ShopManager", HabboEnvironment.Habbo.ShopManager);
- HabboEnvironment.Habbo.GetCacheComponent("ShopManager").Cache();
- ServerMessage message = new ServerMessage(1068);
- message.Append(true);
- HabboEnvironment.GameSocketServer.Sessions.ForEach(x => x.Value.SendResponse(message));
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement