1+ import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
2+
13plugins {
24 id(" java" )
35 alias(libs.plugins.pluginYaml)
@@ -63,6 +65,47 @@ paper {
6365 load = net.minecrell.pluginyml.bukkit.BukkitPluginDescription .PluginLoadOrder .POSTWORLD
6466
6567 authors = listOf (" theShadowsDust" , " OneLiteFeather" )
68+
69+ val userPermissions = listOf (" glow" , " sign" , " unsign" , " help" ).map { " stardust.command.$it " }.toList();
70+
71+ val staffPermissions = listOf (" flight" , " godmode" , " heal" , " rename" , " repair" , " skull" , " vanish" ).map { " stardust.command.$it " }.toList()
72+
73+ val otherCommandPermissions = listOf (" flight" , " glow" , " godmode" , " heal" , " vanish" ).map { " stardust.command.$it .others" }.toList().toList()
74+
75+ val adminPermissions = listOf (" stardust.command.vanish.fakejoin" , " stardust.command.vanish.fakequit" , " stardust.command.frogbucket" )
76+
77+ permissions {
78+
79+ this .register(" stardust.commands.user" ) {
80+ children = userPermissions
81+ this .default = BukkitPluginDescription .Permission .Default .FALSE
82+ }
83+
84+ this .register(" stardust.commands.staff" ) {
85+ children = staffPermissions
86+ this .default = BukkitPluginDescription .Permission .Default .OP
87+ }
88+
89+ this .register(" stardust.bundle.vanish" ) {
90+ children = listOf (
91+ " stardust.command.vanish.toggleproperty" ,
92+ " stardust.vanish.silentopen.interact" ,
93+ " stardust.vanish.silentopen" ,
94+ " stardust.vanish.auto" )
95+ this .default = BukkitPluginDescription .Permission .Default .OP
96+ }
97+
98+ this .register(" stardust.bundle.bypass" ) {
99+ children = listOf (" stardust.commandcooldown.bypass" , " stardust.bypass.damage.invulnerable" , " stardust.command.sign.override" )
100+ this .default = BukkitPluginDescription .Permission .Default .OP
101+ }
102+
103+ this .register(" stardust.commands.admin" ) {
104+ children = otherCommandPermissions.plus(adminPermissions)
105+ this .default = BukkitPluginDescription .Permission .Default .OP
106+ }
107+ }
108+
66109 serverDependencies {
67110 register(" LuckPerms" ) {
68111 required = false
@@ -71,6 +114,7 @@ paper {
71114 required = false
72115 }
73116 }
117+
74118}
75119
76120publishing {
0 commit comments