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); }
private void HandleExecuteCommand(ExecuteCommandPacket packet) { if (!Authorized) { SendPacket(new AuthorizationDisconnectPacket { Reason = "Not authorized!" }); return; } Module.ExecuteClientCommand(this, packet.Command); }