From 07b13e57a51d353972f4dc704eff26ad33177558 Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Wed, 8 Apr 2020 12:12:35 +0200 Subject: [PATCH] Fix the Kotlin calls for adding commands and permissions. Closes #4 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b04cab2..231a66a 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ bukkit { provides = listOf("TestPluginOldName", "TestPlug") commands { - "test" { + register("test") { description = "This is a test command!" aliases = listOf("t") permission = "testplugin.test" @@ -121,12 +121,12 @@ bukkit { } permissions { - "testplugin.*" { + register("testplugin.*") { children = listOf("testplugin.test") // Defaults permissions to true // You can also specify the values of the permissions childrenMap = mapOf("testplugin.test" to true) } - "testplugin.test" { + register("testplugin.test") { description = "Allows you to run the test command" default = BukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP } @@ -271,7 +271,7 @@ nukkit { prefix = "TEST" commands { - "test" { + register("test") { description = "This is a test command!" aliases = listOf("t") permission = "testplugin.test" @@ -281,7 +281,7 @@ nukkit { } permissions { - "testplugin.*" { + register("testplugin.*") { description = "Allows you to run all testplugin commands" children { "testplugin.test" {