Since no one answer in the plugin Help section, I had to post this here. I'm trying to create a new GUI that opens with the command "vip", so I added this piece of code in the chat commands section at Kits.cs and created a GUI with the code 1 at config/Kits.json.
[ChatCommand("vip")] void cmdChatVipKit(BasePlayer player, string command) { if (GUIKits.ContainsKey(1)) NewKitPanel(player, 1); else { string reason = string.Empty; foreach (var pair in storedData.Kits) { var cansee = CanSeeKit(player, pair.Key, false, out reason); if (!cansee && string.IsNullOrEmpty(reason)) continue; SendReply(player, $"{pair.Value.name} - {pair.Value.description} {reason}"); } } return; }
The plugin works with no errors but when I type the command, it says it doesn't exist. Can someone help me with that?