mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-10-31 17:19:21 +00:00
Fix Nukkit examples
This commit is contained in:
parent
a1ff0b1ab5
commit
0db65c712f
16
README.md
16
README.md
|
@ -191,7 +191,7 @@ plugins {
|
||||||
id 'net.minecrell.plugin-yml.nukkit' version '0.3.0'
|
id 'net.minecrell.plugin-yml.nukkit' version '0.3.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
bukkit {
|
nukkit {
|
||||||
// Default values can be overridden if needed
|
// Default values can be overridden if needed
|
||||||
// name = 'TestPlugin'
|
// name = 'TestPlugin'
|
||||||
// version = '1.0'
|
// version = '1.0'
|
||||||
|
@ -223,14 +223,16 @@ bukkit {
|
||||||
|
|
||||||
permissions {
|
permissions {
|
||||||
'testplugin.*' {
|
'testplugin.*' {
|
||||||
children = ['testplugin.test']
|
description = 'Allows you to run all testplugin commands'
|
||||||
}
|
children {
|
||||||
'testplugin.test' {
|
'testplugin.test' {
|
||||||
description = 'Allows you to run the test command'
|
description = 'Allows you to run the test command'
|
||||||
setDefault('OP') // 'TRUE', 'FALSE', 'OP' or 'NOT_OP'
|
setDefault('OP') // 'TRUE', 'FALSE', 'OP' or 'NOT_OP'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -242,7 +244,7 @@ plugins {
|
||||||
id("net.minecrell.plugin-yml.nukkit") version "0.3.0"
|
id("net.minecrell.plugin-yml.nukkit") version "0.3.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
bukkit {
|
nukkit {
|
||||||
// Default values can be overridden if needed
|
// Default values can be overridden if needed
|
||||||
// name = "TestPlugin"
|
// name = "TestPlugin"
|
||||||
// version = "1.0"
|
// version = "1.0"
|
||||||
|
@ -274,14 +276,16 @@ bukkit {
|
||||||
|
|
||||||
permissions {
|
permissions {
|
||||||
"testplugin.*" {
|
"testplugin.*" {
|
||||||
children = listOf("testplugin.test")
|
description = "Allows you to run all testplugin commands"
|
||||||
}
|
children {
|
||||||
"testplugin.test" {
|
"testplugin.test" {
|
||||||
description = "Allows you to run the test command"
|
description = "Allows you to run the test command"
|
||||||
default = NukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP
|
default = NukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue