Changed Group. This isn't java. Don't use accessor/mutator methods. Use properties.

This commit is contained in:
high 2011-06-14 17:06:17 -04:00
parent c3bf304c0c
commit fff6e1bcbc
3 changed files with 69 additions and 86 deletions

View file

@ -415,7 +415,7 @@ namespace TShockAPI
{
for (int j = 0; j < groups.Count; j++)
{
if (groups[j].GetName().Equals(parent))
if (groups[j].Name.Equals(parent))
{
group = new Group(name, groups[j]);
break;
@ -455,7 +455,7 @@ namespace TShockAPI
//first attempt on cached groups
for (int i = 0; i < groups.Count; i++)
{
if (groups[i].GetName().Equals(groupName))
if (groups[i].Name.Equals(groupName))
{
return groups[i];
}
@ -465,7 +465,7 @@ namespace TShockAPI
for (int i = 0; i < groups.Count; i++)
{
if (groups[i].GetName().Equals(groupName))
if (groups[i].Name.Equals(groupName))
{
return groups[i];
}