From 603af544b3dbfc73ae9901cad2b6594cae55e855 Mon Sep 17 00:00:00 2001 From: Gureumi Date: Sat, 13 Apr 2024 23:00:44 +0900 Subject: [PATCH] Add Unit command counting --- src/main/kotlin/essentials/Main.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/essentials/Main.kt b/src/main/kotlin/essentials/Main.kt index f9434ba1..c94b1a7a 100644 --- a/src/main/kotlin/essentials/Main.kt +++ b/src/main/kotlin/essentials/Main.kt @@ -169,6 +169,10 @@ class Main: Plugin() { } if (data != null) { + if (e.type == Administration.ActionType.commandUnits) { + data.currentControlCount += e.unitIDs.size + } + when { isHub != null && isHub == state.map.name() -> { return@addActionFilter Permission.check(data, "hub.build")