mirror of
https://github.com/NexusForever/NexusForever
synced 2026-08-14 00:26:05 -04:00
20 lines
620 B
C#
20 lines
620 B
C#
using System;
|
|
using NexusForever.WorldServer.Game.RBAC.Static;
|
|
|
|
namespace NexusForever.WorldServer.Command
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
|
|
public class CommandAttribute : Attribute
|
|
{
|
|
public Permission Permission { get; }
|
|
public string HelpText { get; }
|
|
public string[] Commands { get; }
|
|
|
|
public CommandAttribute(Permission permission = Permission.None, string helpText = "", params string[] commands)
|
|
{
|
|
Permission = permission;
|
|
HelpText = helpText;
|
|
Commands = commands;
|
|
}
|
|
}
|
|
}
|