forked from Ev1dentFir3/Duty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommandDuty.cs
58 lines (50 loc) · 1.22 KB
/
CommandDuty.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using Rocket.Unturned.Commands;
using Rocket.Unturned.Player;
using Rocket.Unturned;
using Rocket.API;
using SDG;
using System;
using System.Collections.Generic;
using System.Linq;
namespace EFG.Duty
{
public class CommandDuty : IRocketCommand
{
public void Execute(IRocketPlayer caller, string[] command)
{
if (caller == null) return;
UnturnedPlayer player = (UnturnedPlayer)caller;
Duty.Instance.duty(player);
}
public string Help
{
get { return "Let your staff do their job!"; }
}
public string Name
{
get { return "duty"; }
}
public string Syntax
{
get { return ""; }
}
public bool AllowFromConsole
{
get { return false; }
}
public AllowedCaller AllowedCaller
{
get { return Rocket.API.AllowedCaller.Player; }
}
public List<string> Aliases {
get { return new List<string>() { "d" }; }
}
public List<string> Permissions
{
get
{
return new List<string>() { "duty.duty"};
}
}
}
}