diff --git a/src/Jail.cs b/src/Jail.cs index 1d6323f..0204725 100644 --- a/src/Jail.cs +++ b/src/Jail.cs @@ -117,6 +117,7 @@ void register_commands() AddCommand("wb","warden : enable block",warden.wb_cmd); AddCommand("wd","warden : start warday",warden.warday_cmd); + AddCommand("wcommands", "warden : show all commands",warden.cmd_info); // reg lr commands AddCommand("lr","start an lr",lr.lr_cmd); diff --git a/src/Warden/Warden.cs b/src/Warden/Warden.cs index 9a11a20..e7377b5 100644 --- a/src/Warden/Warden.cs +++ b/src/Warden/Warden.cs @@ -53,6 +53,8 @@ public void set_warden(int? new_slot_opt) announce($"{player.PlayerName} is now the warden"); + player.announce(WARDEN_PREFIX,"Type !wcommands to see a full list of warden commands"); + // change player color! player.set_colour(Color.FromArgb(255, 0, 0, 255)); } @@ -192,6 +194,21 @@ public void is_rebel_cmd(CCSPlayerController? invoke, CommandInfo command) } } + public void cmd_info(CCSPlayerController? player, CommandInfo command) + { + if(player == null || !player.is_valid()) + { + return; + } + + player.PrintToChat("!w - take warden"); + player.PrintToChat("!wd - start a warday"); + player.PrintToChat("!uw - leave warden"); + player.PrintToChat("!wb - enable block"); + player.PrintToChat("!wub - disable block"); + player.PrintToChat("!rw - admin remove warden"); + } + public void take_warden_cmd(CCSPlayerController? player, CommandInfo command) { // invalid player we dont care