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) {