Skip to content

Commit

Permalink
Separated LudosCore permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Sep 21, 2023
1 parent 4d63d78 commit f18ff43
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,28 @@ bukkit {
authors = listOf("Antoine BANHA", "Logan TANN", "Aurelien DASSE", "Idir NAIT MEDDOUR")
prefix = "MINI"
depend = listOf("WorldEdit", "ProtocolLib", "ECATUP", "AnimusClient-Paper")
permissions {
register("ludos.admin") {
description = "Gives access to all admin permissions"
default = BukkitPluginDescription.Permission.Default.OP
children = listOf(
"ludos.admin.game",
"ludos.admin.map",
"ludos.admin.forcewin",
"ludos.admin.move"
)
}
}
commands {
register("game") {
description = "Manages the games"
permission = "ludos.admin"
permission = "ludos.admin.game"
permissionMessage = "You do not have permission to manage the games"
aliases = listOf("g")
}
register("map") {
description = "Manages the maps"
permission = "ludos.admin"
permission = "ludos.admin.map"
permissionMessage = "You do not have permission to manage the maps"
aliases = listOf("m")
}
Expand All @@ -76,13 +88,11 @@ bukkit {
}
register("forcewin") {
description = "Makes a team or player win"
aliases = listOf("forcewin")
permission = "ludos.admin"
permission = "ludos.admin.forcewin"
}
register("move") {
description = "Moves a player to a team"
aliases = listOf("move")
permission = "ludos.admin"
permission = "ludos.admin.move"
}
}
}

0 comments on commit f18ff43

Please sign in to comment.