diff --git a/ClaimLink/CommandListener.cs b/ClaimLink/CommandListener.cs index 98ecd1b..c1132b9 100644 --- a/ClaimLink/CommandListener.cs +++ b/ClaimLink/CommandListener.cs @@ -28,6 +28,7 @@ public class CommandListener : ICommandHookListener private static readonly Dictionary claimSub = new() { ["load"] = ClaimLoad, + ["new"] = ClaimNew, ["save"] = ClaimSave, ["cancel"] = ClaimCancel, }; @@ -99,6 +100,14 @@ public class CommandListener : ICommandHookListener PendingLoads[caller.Player.PlayerUID] = (int)claimIndex; } + private static void ClaimNew(Caller caller, CmdArgs args) + { + if (caller.Player == null) + return; + + PendingLoads.Remove(caller.Player.PlayerUID); + } + private static void ClaimCancel(Caller caller, CmdArgs args) { if (caller.Player == null)