From 5f5828d01660e93678caad6f00bafb62393156ad Mon Sep 17 00:00:00 2001 From: Kyle873 Date: Wed, 7 Jun 2023 00:12:33 -0400 Subject: [PATCH] give command bugfix --- GameServer/Commands/GiveCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameServer/Commands/GiveCommand.cs b/GameServer/Commands/GiveCommand.cs index 34a9a38..b5ab0e5 100644 --- a/GameServer/Commands/GiveCommand.cs +++ b/GameServer/Commands/GiveCommand.cs @@ -19,7 +19,7 @@ namespace PemukulPaku.GameServer.Commands public override void Run(Player player, string[] args) { string action = args[0]; - uint value = args[1] is not null ? uint.Parse(args[1]):0; + uint value = (args.Length > 1 && args[1] is not null) ? uint.Parse(args[1]) : 0; switch (action) {