Example - Creating a message broadcasting system has incorrect code block
JorelAli opened this issue · comments
Jorel Ali commented
Documentation URL
What the documentation currently says
Proposed fix
(Double reference to "normalcommandexecutors3" in Examples.java. Needs renaming and re-linking):
//Create our command
CommandAPICommand("broadcastmsg")
.withArguments(GreedyStringArgument("message")) // The arguments
.withAliases("broadcast", "broadcastmessage") // Command aliases
.withPermission(CommandPermission.OP) // Required permissions
.executes(CommandExecutor { sender, args ->
String message = (String) args[0]
Bukkit.getServer().broadcastMessage(message)
})
.register()
Jorel Ali commented
Fixed in dev/kotlindocs
and merged back into dev/dev
. Will be fixed in the 8.6.0 released documentation.