Disables most command used for other pluginsFixed
v1.1.2 Bug, the plugin disable most command used for other plugins.
Such the Backpacks, Player Administration, ServerInfo.... unable to use these plugin, either by chat commands or by keybinds.
Even if it has a GUI, all button cannot be used. Rolling back to v1.1.15.
I'm not sure why the author is handling that the way they are, but this should be all that is necessary for intercepting a command to send a message. The plugin shouldn't be cancelling ANY commands like it is.
        private void OnServerCommand(ConsoleSystem.Arg arg)
        {
            if (arg.cmd.Name.Equals("restart"))
            {
                if (arg.Args.Length >= 1 && arg.Args[0] == "-1")
                {
                    SendMessage(Lang("Restart Cancel"), Lang("Restart Cancel Descriptions"));
                    Puts("Cancel Restart!");
                    return;
                }

                SendMessage(Lang("Restart"), Lang("Restart Descriptions", null, arg.HasArgs(1) ? arg.Args[0] : "300", arg.HasArgs(2) ? arg.Args[1] : Lang("Unknown")));
            }
        }​

You can replace the existing OnServerCommand block in the plugin, and it should work fine.

5e13a8d5b2bc5.jpg Wulf
I'm not sure why the author is handling that the way they are, but this should be all that is necessary for intercepting a command to send a message. The plugin shouldn't be cancelling ANY commands like it is.
        private void OnServerCommand(ConsoleSystem.Arg arg)
        {
            if (arg.cmd.Name.Equals("restart"))
            {
                if (arg.Args.Length >= 1 && arg.Args[0] == "-1")
                {
                    SendMessage(Lang("Restart Cancel"), Lang("Restart Cancel Descriptions"));
                    Puts("Cancel Restart!");
                    return;
                }

                SendMessage(Lang("Restart"), Lang("Restart Descriptions", null, arg.HasArgs(1) ? arg.Args[0] : "300", arg.HasArgs(2) ? arg.Args[1] : Lang("Unknown")));
            }
        }​

You can replace the existing OnServerCommand block in the plugin, and it should work fine.

thanks :D

Thanks Wulf
Locked automatically