MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / PVars

Class PVars

src/main/java/data/PVars.java:11–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11public class PVars {
12 public static Task rtvSession = new Task() {
13 @Override
14 public void run() {
15 Call.sendMessage("[scarlet]Vote failed! []Not enough votes to change to the [accent] " + selectedMap.name() + "[white] map.");
16 selectedMap = null;
17 cancel();
18 }
19
20 @Override
21 public void cancel() {
22 TempData.each(p -> p.votedRTV = false);
23 rtvCooldown.reset();
24 super.cancel();
25 }
26 }, vnwSession = new Task() {
27 @Override
28 public void run() {
29 Call.sendMessage("[scarlet]Vote for "+ (waveVoted == 1 ? "sending a new wave" : "skiping [scarlet]" + waveVoted + "[] waves") + " failed! []Not enough votes.");
30 waveVoted = 0;
31 cancel();
32 }
33
34 @Override
35 public void cancel() {
36 TempData.each(p -> p.votedVNW = false);
37 vnwCooldown.reset();
38 super.cancel();
39 }
40 };
41 public static ObjectMap<String, String> playerTags = new ObjectMap<>(),
42 bansReason = new ObjectMap<>();
43 public static String ALogPath = "config/admin-logs/";
44 public static Seq<String> adminCommands = new Seq<>(),
45 recentMutes = new Seq<>();
46 public static mindustry.maps.Map selectedMap;
47 public static Timekeeper rtvCooldown = new Timekeeper(3 * 60),
48 vnwCooldown = new Timekeeper(3 * 60);
49 public static short waveVoted = 1;
50 public static boolean chat = true,
51 autoPause = false,
52 niceWelcome = true,
53 unbanConfirm = false,
54 clearConfirm = false,
55 canVote = true,
56 alogConfirm = false,
57 tags = true;
58
59 static {
60 rtvCooldown.reset();
61 vnwCooldown.reset();
62 }
63}

Callers

nothing calls this directly

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected