Description Plays a sound to a player at their location. Accepts Bukkit Sound enum names or custom sound strings. Dots are converted to underscores for enum lookup.
Examples play sound "entity_experience_orb_pickup" to player Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
play sound <sound> at <who>play sound <sound> to <who>Related (Player) message %who:PLAYER% %text:STRING%Sends a formatted message to a player. set %who:PLAYER_POSSESSIVE% health [to] %val:INT%Sets a player's health to the given value. (teleport|tp) %who:PLAYER% [to] %target:PLAYER%Teleports a player to another player. (teleport|tp) %who:PLAYER% [to] %loc:LOCATION%Teleports a player to a location. (heal|restore) %who:PLAYER%Fully heals a player to their maximum health. (feed|saturate) %who:PLAYER%Fully feeds a player, setting their food level to 20. (kill|slay) %who:PLAYER%Kills a player by setting their health to 0. set %who:PLAYER_POSSESSIVE% food [level] [to] %val:INT%Sets a player's food level to the given value. set %who:PLAYER_POSSESSIVE% (xp level|level) [to] %val:INT%Sets a player's experience level. set %who:PLAYER_POSSESSIVE% (gamemode|gm) [to] %mode:EXPR%Sets a player's gamemode. (kick|disconnect) %who:PLAYER% %reason:STRING%Kicks a player from the server with a reason message. (kick|disconnect) %who:PLAYER%Kicks a player from the server without a reason. set %who:PLAYER_POSSESSIVE% (fly|flight) [mode] [to] %val:BOOLEAN%Enables or disables flight for a player. apply %effect:STRING% %level:INT% to %who:PLAYER% for %duration:INT% ticksApplies a potion effect with the given level and duration (in ticks) to a player... remove [effect] %effect:STRING% from %who:PLAYER%Removes a specific potion effect from a player. clear [all] effects from %who:PLAYER%Removes all active potion effects from a player. send title %title:STRING% to %who:PLAYER%Sends a title to a player with default timing (10 tick fade-in, 70 tick stay, 20... send title %title:STRING% with subtitle %sub:STRING% to %who:PLAYER%Sends a title with subtitle to a player with default timing. send title %title:STRING% with subtitle %sub:STRING% to %who:PLAYER% with fade in %fi:INT% stay %st:INT% fade out %fo:INT%Sends a title with subtitle and custom timing (all in ticks) to a player. send actionbar %text:STRING% to %who:PLAYER%Sends an action bar message to a player.