private void HandleExecuteCommand(ExecuteCommandPacket packet)
        {
            if (!Authorized)
            {
                SendPacket(new AuthorizationDisconnectPacket { Reason = "Not authorized!" });
                return;
            }

            Package Package = new Package(Package.PackageTypes.ChatMessage, packet.Command, null);
            Core.Command.HandleAllCommand(Package);
        }
예제 #2
0
        private void HandleExecuteCommand(ExecuteCommandPacket packet)
        {
            if (!Authorized)
            {
                SendPacket(new AuthorizationDisconnectPacket { Reason = "Not authorized!" });
                return;
            }

            Module.ExecuteClientCommand(this, packet.Command);
        }