24package com.dreamfirestudios.dreamcore.DreamSound;
26import org.bukkit.Location;
27import org.bukkit.Sound;
28import org.bukkit.entity.Player;
52 public static void PlaySound(Sound minecraftSound, Player player, Location location,
int volume,
int pitch){
53 player.playSound(location, minecraftSound, volume, pitch);
63 public static void PlaySound(Sound minecraftSound, Location location,
int volume,
int pitch){
64 if(location.getWorld() ==
null)
return;
65 location.getWorld().playSound(location, minecraftSound, volume, pitch);
Convenience wrappers for playing sounds to players or in the world.
static void PlaySound(Sound minecraftSound, Player player, Location location, int volume, int pitch)
Plays a sound only for a specific player at a location.
static void PlaySound(Sound minecraftSound, Location location, int volume, int pitch)
Plays a sound globally in the world at a location.