give command bugfix

This commit is contained in:
Kyle873
2023-06-07 00:12:33 -04:00
parent cd2087f6cb
commit 5f5828d016

View File

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