-
-
Notifications
You must be signed in to change notification settings - Fork 74
Example - Creating a message broadcasting system has incorrect code block #341
Copy link
Copy link
Closed
Labels
critical bugA bug that should be fixed ASAPA bug that should be fixed ASAPdocumentationDocumentation improvementDocumentation improvementimplemented for next releaseThis has been implemented in the current dev build for the next public releaseThis has been implemented in the current dev build for the next public release
Description
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()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
critical bugA bug that should be fixed ASAPA bug that should be fixed ASAPdocumentationDocumentation improvementDocumentation improvementimplemented for next releaseThis has been implemented in the current dev build for the next public releaseThis has been implemented in the current dev build for the next public release
