Ejemplo n.º 1
0
        /// <inheritdoc/>
        public override void Execute(List <string> _params, CommandSenderInfo _senderInfo)
        {
            if (_params.Count < 1)
            {
                return;
            }

            AdminCommandManager.ExecuteCommand(_params[0], _params.GetRange(1, _params.Count - 1), _senderInfo.RemoteClientInfo);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks whether a specified client has access to this command.
 /// </summary>
 /// <param name="client">The <see cref="SMClient"/> object representing the client to check.</param>
 /// <returns><c>true</c> if <paramref name="client"/> has access to this command; otherwise <c>false</c>.</returns>
 public bool HasAccess(SMClient client)
 {
     return(AdminCommandManager.HasAccess(client?.ClientInfo, this));
 }