FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Example - Creating a message broadcasting system has incorrect code block · Issue #341 · CommandAPI/CommandAPI · GitHub

Example - Creating a message broadcasting system has incorrect code block #341

Description

Documentation URL

https://commandapi.jorel.dev/8.5.1/normalexecutors.html#example---creating-a-message-broadcasting-system

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    critical bugA bug that should be fixed ASAPdocumentationDocumentation improvementimplemented for next releaseThis has been implemented in the current dev build for the next public release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL