Skip to content

Commit

Permalink
Add Unit command counting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieaer committed Apr 13, 2024
1 parent 28f866e commit 603af54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/essentials/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 603af54

Please sign in to comment.