Пример #1
0
 public Command(string name, string[] aliases, string description, string usage, Command parent, BaseExecutionCheckAttribute[] checks,
                CommandHandler handler, PluginContainer plugin, object parentinstance, Type parentType, CommandIssuers allowedIssuers)
 {
     Name            = name;
     Aliases         = aliases;
     Parent          = parent;
     ExecutionChecks = checks;
     Handler         = handler;
     Description     = description;
     Usage           = usage;
     ParentInstance  = parentinstance;
     Plugin          = plugin;
     ParentType      = parentType;
     AllowedIssuers  = allowedIssuers;
     Overloads       = new List <MethodInfo>();
 }
Пример #2
0
 public CommandSender(CommandIssuers issuer, IPlayer player, ILogger logger)
 {
     Issuer = issuer;
     Player = player;
     Logger = logger;
 }
Пример #3
0
 public IssuerScopeAttribute(CommandIssuers issuers)
 {
     Issuers = issuers;
 }
 public DisallowedCommandIssuerException(string message, Exception innerException, CommandIssuers allowedIssuers) : base(message, innerException)
 {
     AllowedIssuers = allowedIssuers;
 }
 public DisallowedCommandIssuerException(CommandIssuers allowedIssuers)
 {
     AllowedIssuers = allowedIssuers;
 }