2015-08-20 01:06:44 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2017-05-26 18:49:27 -04:00
|
|
|
|
using System.Threading.Tasks;
|
2015-08-20 01:06:44 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibrary
|
|
|
|
|
{
|
|
|
|
|
public abstract class Command
|
|
|
|
|
{
|
|
|
|
|
public Command(String N, String D, String A, Player.Permission P, int args, bool nT)
|
|
|
|
|
{
|
|
|
|
|
Name = N;
|
|
|
|
|
Description = D;
|
|
|
|
|
Alias = A;
|
|
|
|
|
Permission = P;
|
2017-06-07 17:08:29 -04:00
|
|
|
|
RequiredArgumentCount = args;
|
|
|
|
|
RequiresTarget = nT;
|
2015-08-20 01:06:44 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Execute the command
|
2017-05-26 18:49:27 -04:00
|
|
|
|
abstract public Task ExecuteAsync(Event E);
|
2015-08-20 01:06:44 -04:00
|
|
|
|
|
|
|
|
|
public String Name { get; private set; }
|
|
|
|
|
public String Description { get; private set; }
|
|
|
|
|
public String Alias { get; private set; }
|
2017-06-07 17:08:29 -04:00
|
|
|
|
public int RequiredArgumentCount { get; private set; }
|
|
|
|
|
public bool RequiresTarget { get; private set; }
|
2015-08-20 01:06:44 -04:00
|
|
|
|
public Player.Permission Permission { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|