🔊 Sound Module - gumpdev/mars GitHub Wiki

Methods:

Mars.sound.play(Player player, Sound sound, int? volume, int? pitch, boolean? global) -> void

  • pl is the player will be played the sound
  • sound is the sound that will be played
  • volume is the volume of the sound. Optional
  • pitch is the pitch of the sound. Optional
  • global will say if all players around will listen the sound

Plays a sound for a player

Mars.sound.play(Location location, Sound sound, int? volume, int? pitch, boolean? global) -> void

  • location is the location will be played the sound
  • sound is the sound that will be played
  • volume is the volume of the sound. Optional
  • pitch is the pitch of the sound. Optional

Plays a sound for all players near the location