Refactor out spaces -> tabs
Remove checks to the itemban table for npcs(wtf zidonuke) and projectiles.
This commit is contained in:
parent
84d8049ac6
commit
c8a4fd711f
5 changed files with 413 additions and 405 deletions
|
|
@ -64,8 +64,8 @@ namespace TShockAPI
|
|||
[Description("User can manage item bans.")]
|
||||
public static readonly string manageitem = "tshock.admin.itemban";
|
||||
|
||||
[Description("User can manage projectile bans.")]
|
||||
public static readonly string manageprojectile = "tshock.admin.projectileban";
|
||||
[Description("User can manage projectile bans.")]
|
||||
public static readonly string manageprojectile = "tshock.admin.projectileban";
|
||||
|
||||
[Description("User can manage groups.")]
|
||||
public static readonly string managegroup = "tshock.admin.group";
|
||||
|
|
@ -325,14 +325,14 @@ namespace TShockAPI
|
|||
[Description("Player can chat")]
|
||||
public static readonly string canchat = "tshock.canchat";
|
||||
|
||||
[Description("Player can use banned projectiles.")]
|
||||
public static readonly string canusebannedprojectiles = "tshock.projectiles.usebanned";
|
||||
[Description("Player can use banned projectiles.")]
|
||||
public static readonly string canusebannedprojectiles = "tshock.projectiles.usebanned";
|
||||
|
||||
/// <summary>
|
||||
/// Lists all commands associated with a given permission
|
||||
/// </summary>
|
||||
/// <param name="perm">string permission - the permission to get information on</param>
|
||||
/// <returns>List of commands</returns>
|
||||
/// <summary>
|
||||
/// Lists all commands associated with a given permission
|
||||
/// </summary>
|
||||
/// <param name="perm">string permission - the permission to get information on</param>
|
||||
/// <returns>List of commands</returns>
|
||||
private static List<Command> GetCommands(string perm)
|
||||
{
|
||||
if (Commands.ChatCommands.Count < 1)
|
||||
|
|
@ -340,9 +340,9 @@ namespace TShockAPI
|
|||
return Commands.ChatCommands.Where(c => c.Permissions.Contains(perm)).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dumps the descriptions of each permission to a file in Markdown format.
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// Dumps the descriptions of each permission to a file in Markdown format.
|
||||
/// </summary>
|
||||
public static void DumpDescriptions()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue