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>
|
/// <summary>
|
||||||
/// Shows a MOTD to the player
|
/// Returns a Group from the name of the group
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ply">int player</param>
|
/// <param name="ply">string groupName</param>
|
||||||
public static Group GetGroup(string name)
|
public static Group GetGroup(string groupName)
|
||||||
{
|
{
|
||||||
//first attempt on cached groups
|
//first attempt on cached groups
|
||||||
for (int i = 0; i < groups.Count; i++)
|
for (int i = 0; i < groups.Count; i++)
|
||||||
{
|
{
|
||||||
if (groups[i].GetName().Equals(name))
|
if (groups[i].GetName().Equals(groupName))
|
||||||
{
|
{
|
||||||
return groups[i];
|
return groups[i];
|
||||||
}
|
}
|
||||||
|
|
@ -344,7 +344,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
for (int i = 0; i < groups.Count; i++)
|
for (int i = 0; i < groups.Count; i++)
|
||||||
{
|
{
|
||||||
if (groups[i].GetName().Equals(name))
|
if (groups[i].GetName().Equals(groupName))
|
||||||
{
|
{
|
||||||
return groups[i];
|
return groups[i];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue