From 517b40eec66ab98f3aab7720006a0af72e171544 Mon Sep 17 00:00:00 2001 From: Maverick Motherfucker Date: Fri, 3 Jun 2011 21:41:17 -0700 Subject: [PATCH] oops, forgot to do this --- TShockAPI/Tools.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TShockAPI/Tools.cs b/TShockAPI/Tools.cs index 35d635ab..1364ce5c 100644 --- a/TShockAPI/Tools.cs +++ b/TShockAPI/Tools.cs @@ -326,15 +326,15 @@ namespace TShockAPI } /// - /// Shows a MOTD to the player + /// Returns a Group from the name of the group /// - /// int player - public static Group GetGroup(string name) + /// string groupName + public static Group GetGroup(string groupName) { //first attempt on cached groups for (int i = 0; i < groups.Count; i++) { - if (groups[i].GetName().Equals(name)) + if (groups[i].GetName().Equals(groupName)) { return groups[i]; } @@ -344,7 +344,7 @@ namespace TShockAPI for (int i = 0; i < groups.Count; i++) { - if (groups[i].GetName().Equals(name)) + if (groups[i].GetName().Equals(groupName)) { return groups[i]; }