-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandAllFobs.cs
More file actions
46 lines (38 loc) · 1.38 KB
/
CommandAllFobs.cs
File metadata and controls
46 lines (38 loc) · 1.38 KB
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
using Rocket.API;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Player;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Ekin.EACFOB
{
internal class CommandAllFobs : IRocketCommand
{
public AllowedCaller AllowedCaller => AllowedCaller.Player;
public string Name => "afobs";
public string Help => "";
public string Syntax => "";
public List<string> Aliases => new List<string>();
public List<string> Permissions => new List<string>();
public void Execute(IRocketPlayer caller, string[] command)
{
UnturnedPlayer val = (UnturnedPlayer)caller;
if (EACFOBPlugin.Instance.Fobs.Count == 0)
{
UnturnedChat.Say(caller, "There is no active fob", Color.yellow);
return;
}
UnturnedChat.Say(caller, "=== FOB LIST ===", Color.yellow);
int num = 0;
foreach (var fob in EACFOBPlugin.Instance.Fobs)
{
UnturnedChat.Say(caller, "* " + fob.Value.Name + " Team: " + fob.Value.Type + " ID: " + fob.Value.InstanceID, Color.white);
num++;
}
UnturnedChat.Say(caller, num + " Fobs Listed", Color.blue);
}
}
}