Audio Playback

The 'stop' command

How to use the stop command to stop audio playback for players.

The stop command is a buck simple command to undo/stop media that was previously started with the play command.

It can be used to stop specific media by its assigned ID, or to stop all currently playing media for the selected players.

Basic usage

Command<> required[] optional

/oa stop <selector> [id]

in this case, the 'id' parameter is optional. If you provide an ID, only the media with that specific ID will be stopped. If you omit the ID, all currently playing media for the selected players will be stopped.

Examples

  • Stop all manually played media for all players:
    Command<> required[] optional

    /oa stop @a

  • Stop a specific media by its ID for the nearest player:
    Command<> required[] optional

    /oa stop @p my-song

Permissions

openaudiomc.commands.stop

This permission is required to use the /oa stop command

op

Javadoc for this feature

Generated from the dev branch.