mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-12-22 08:15:08 +00:00
parent
36ec001e8e
commit
07b13e57a5
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -110,7 +110,7 @@ bukkit {
|
||||||
provides = listOf("TestPluginOldName", "TestPlug")
|
provides = listOf("TestPluginOldName", "TestPlug")
|
||||||
|
|
||||||
commands {
|
commands {
|
||||||
"test" {
|
register("test") {
|
||||||
description = "This is a test command!"
|
description = "This is a test command!"
|
||||||
aliases = listOf("t")
|
aliases = listOf("t")
|
||||||
permission = "testplugin.test"
|
permission = "testplugin.test"
|
||||||
|
@ -121,12 +121,12 @@ bukkit {
|
||||||
}
|
}
|
||||||
|
|
||||||
permissions {
|
permissions {
|
||||||
"testplugin.*" {
|
register("testplugin.*") {
|
||||||
children = listOf("testplugin.test") // Defaults permissions to true
|
children = listOf("testplugin.test") // Defaults permissions to true
|
||||||
// You can also specify the values of the permissions
|
// You can also specify the values of the permissions
|
||||||
childrenMap = mapOf("testplugin.test" to true)
|
childrenMap = mapOf("testplugin.test" to true)
|
||||||
}
|
}
|
||||||
"testplugin.test" {
|
register("testplugin.test") {
|
||||||
description = "Allows you to run the test command"
|
description = "Allows you to run the test command"
|
||||||
default = BukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP
|
default = BukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP
|
||||||
}
|
}
|
||||||
|
@ -271,7 +271,7 @@ nukkit {
|
||||||
prefix = "TEST"
|
prefix = "TEST"
|
||||||
|
|
||||||
commands {
|
commands {
|
||||||
"test" {
|
register("test") {
|
||||||
description = "This is a test command!"
|
description = "This is a test command!"
|
||||||
aliases = listOf("t")
|
aliases = listOf("t")
|
||||||
permission = "testplugin.test"
|
permission = "testplugin.test"
|
||||||
|
@ -281,7 +281,7 @@ nukkit {
|
||||||
}
|
}
|
||||||
|
|
||||||
permissions {
|
permissions {
|
||||||
"testplugin.*" {
|
register("testplugin.*") {
|
||||||
description = "Allows you to run all testplugin commands"
|
description = "Allows you to run all testplugin commands"
|
||||||
children {
|
children {
|
||||||
"testplugin.test" {
|
"testplugin.test" {
|
||||||
|
|
Loading…
Reference in a new issue