-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandDisableFobDeploy.cs
More file actions
43 lines (36 loc) · 1.24 KB
/
CommandDisableFobDeploy.cs
File metadata and controls
43 lines (36 loc) · 1.24 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
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 CommandDisableFobDeploy : IRocketCommand
{
public AllowedCaller AllowedCaller => AllowedCaller.Both;
public string Name => "fobdisable";
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 player = (UnturnedPlayer)caller;
bool isdeployfobenable = EACFOBPlugin.Instance.CanDeployFob;
if (isdeployfobenable)
{
UnturnedChat.Say( "Deploying fob is now deactive", Color.red);
EACFOBPlugin.Instance.CanDeployFob = false;
}
else
{
UnturnedChat.Say( "Deploying fob is now active", Color.blue);
EACFOBPlugin.Instance.CanDeployFob = true;
}
}
}
}