-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForceWaveCommand.cs
31 lines (28 loc) · 1.05 KB
/
ForceWaveCommand.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
using CommandSystem;
using Exiled.Permissions.Extensions;
using Exiled.API.Features;
using Exiled.API.Enums;
using PlayerRoles;
using System;
namespace RRR
{
[CommandHandler(typeof(RemoteAdminCommandHandler))]
internal class ForceWaveCommand : ICommand
{
public string Command { get; set; } = "forceO5wave";
public string Description { get; set; } = "Forces Alpha-1 on next spawn wave!";
public string[] Aliases { get; set; } = new string[] { };
public bool Execute(ArraySegment<string> args, ICommandSender sender, out string response)
{
if (!sender.CheckPermission(PlayerPermissions.RoundEvents))
{
response = "You do not have permission to use this command!";
return false;
}
RRR.Instance.NextIsForced = true;
RRR.Instance.IsSpawnable = true;
response = "Next MTF wave will be Alpha-1!";
return true;
}
}
}