-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobalWipe.cs
31 lines (28 loc) · 1.07 KB
/
GlobalWipe.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 System.Collections.Generic;
using System.Linq;
using Rocket.API;
using Rocket.Core.Logging;
using Rocket.Unturned.Player;
using SDG.Unturned;
namespace AuthMe
{
public class WipeInfo : IRocketCommand
{
public AllowedCaller AllowedCaller => AllowedCaller.Console;
public string Name => "globalwipe";
public string Help => "";
public string Syntax => "";
public List<string> Aliases => new List<string>();
public List<string> Permissions => new List<string> { "authme.globalwipe" };
public void Execute(IRocketPlayer caller, string[] args)
{
Logger.LogWarning("AuthMe >> Attention: All the Password data has been erased from existance.");
MQSPlugin.Instance.PasswordServices.ClearData();
var players = Provider.clients.Select(UnturnedPlayer.FromSteamPlayer);
foreach (var player in players.ToList())
{
Provider.kick(player.CSteamID, MQSPlugin.Instance.Translate("GlobalWipe"));
}
}
}
}