-
Notifications
You must be signed in to change notification settings - Fork 10
/
CommandRunFeast.cs
51 lines (47 loc) · 1.25 KB
/
CommandRunFeast.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
using System;
using System.Collections;
using System.Collections.Generic;
using Rocket.API;
using Rocket.Unturned.Chat;
using UnityEngine;
namespace ZaupFeast
{
public class CommandRunFeast : IRocketCommand
{
public string Name
{
get { return "runfeast"; }
}
public string Help
{
get { return "Immediately starts the feast"; }
}
public string Syntax
{
get { return ""; }
}
public List<string> Aliases
{
get { return new List<string> { "frun" }; }
}
public List<string> Permissions
{
get { return new List<string>(); }
}
public AllowedCaller AllowedCaller
{
get
{
return AllowedCaller.Both;
}
}
// Run the command.
public void Execute(IRocketPlayer caller, string[] command)
{
UnturnedChat.Say(Feast.Instance.Translate("now_feast_msg", new object[] {
Feast.Instance.nextLocation.Name
}), UnturnedChat.GetColorFromName(Feast.Instance.Configuration.Instance.MessageColor, Color.red));
Feast.Instance.runFeast();
}
}
}