oops, forgot to do this
This commit is contained in:
parent
6f3f53f0dc
commit
517b40eec6
1 changed files with 5 additions and 5 deletions
|
|
@ -326,15 +326,15 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shows a MOTD to the player
|
||||
/// Returns a Group from the name of the group
|
||||
/// </summary>
|
||||
/// <param name="ply">int player</param>
|
||||
public static Group GetGroup(string name)
|
||||
/// <param name="ply">string groupName</param>
|
||||
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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue