Example #1
0
 void cmdRemove(BasePlayer player, string command, string[] args)
 {
     if (player == null)
     {
         return;
     }
     BuildingUpgrade?.Call("ToggleRemove", player);
 }
Example #2
0
        private void Init()
        {
            permission.RegisterPermission(permUse, this);
            permission.RegisterPermission(permFree, this);

            lang.RegisterMessages(EN, this);

            plugin = this;

            foreach (var command in config.commands)
            {
                cmd.AddChatCommand(command, this, "Command");
                cmd.AddConsoleCommand(command, this, "Command");
            }
        }