Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
Adding GetCSteamIDParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fr34kyn01535 committed Jan 3, 2016
1 parent 9ea4b01 commit 25d2d1f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Rocket.Unturned/Commands/UnturnedCommandExtensions.cs
Expand Up @@ -68,6 +68,19 @@ public static RocketPlayer GetRocketPlayerParameter(this string[] array, int ind
return null;
}

public static ulong? GetCSteamIDParameter(this string[] array, int index)
{
if (array.Length > index)
{
ulong id = 0;
if (ulong.TryParse(array[index], out id) && id > 76561197960265728)
{
return id;
}
}
return null;
}

public static Color? GetColorParameter(this string[] array, int index)
{
if(array.Length <= index) return null;
Expand Down

0 comments on commit 25d2d1f

Please sign in to comment.