void cmdRemove(BasePlayer player, string command, string[] args) { if (player == null) { return; } BuildingUpgrade?.Call("ToggleRemove", player); }
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"); } }