Plugin category: Sounds Suggested name: PlaySounds What I want: Plugin that be able to play sound at coordinates sent by command executer. Ideas for commands: /playsound <Sound ID> <volume> <pitch> <x> <y> <z> <world> Ideas for permissions: playsound When I'd like it by: ASAP
Byamarro Before I start I just want to confirm that you know Minecraft already has a /playsound command that can play a sound at a players location so the purpose of this plugin is just to play it at coordinates instead?
done, http://uppit.com/ejemxwz860iz/PlaySounds.jar permission node playsound.playsound /playsound2 <Sound ID> <volume> <pitch> <x> <y> <z> <world> Sound ids can be found here http://jd.bukkit.org/rb/apidocs/org/bukkit/Sound.html xxMOxMOxx Code:java package clienthax.playSounds; import org.bukkit.Location;import org.bukkit.Sound;import org.bukkit.World;import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.event.Listener;import org.bukkit.plugin.java.JavaPlugin; public class PlaySounds extends JavaPlugin implements Listener { public void onEnable() { getServer().getPluginManager().registerEvents(this, this); } public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(args.length != 7) { sender.sendMessage("/playsound2 <Sound ID> <volume> <pitch> <x> <y> <z> <world>"); } if(sender.hasPermission("playsound.playsound")) if(command.getName().equalsIgnoreCase("playsound2")) { String soundID = args[0]; Sound sound = Sound.valueOf(soundID); String worldName = args[6]; int x = Integer.parseInt(args[3]); int y = Integer.parseInt(args[4]); int z = Integer.parseInt(args[5]); World world = getServer().getWorld(worldName); Location location = new Location(world, x, y, z); float volume = Float.parseFloat(args[1]); float pitch = Float.parseFloat(args[2]); world.playSound(location, sound, volume, pitch); return true; } return false; } } EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Before I start I just want to confirm that you know Minecraft already has a /playsound command that can play a sound at a players location so the purpose of this plugin is just to play it at coordinates instead? Didn't knew that. But I really need to play it at coordinates. Thanks for plugin! It will be really usefull.
Welcome I would like to inquire about this plugin still available? If so I'd appreciate if I would get an upload link. thank you