Added Config option for Rest spam.

This commit is contained in:
Zack Piispanen 2013-10-01 01:06:41 -04:00
parent 545709e845
commit 811a98bb4c
4 changed files with 8 additions and 4 deletions

View file

@ -306,7 +306,7 @@ namespace TShockAPI
var sb = new StringBuilder();
foreach (var field in typeof(Permissions).GetFields().OrderBy(f => f.Name))
{
var name = field.Name;
var name = (string)field.GetValue(null);
var descattr =
field.GetCustomAttributes(false).FirstOrDefault(o => o is DescriptionAttribute) as DescriptionAttribute;