Fire NotePlayEvent. Fixes BUKKIT-1779
By: obnoxint <mail@obnoxint.net>
This commit is contained in:
parent
efd15866c4
commit
fc5ec8c899
1 changed files with 6 additions and 0 deletions
|
@ -520,4 +520,10 @@ public class CraftEventFactory {
|
|||
world.getServer().getPluginManager().callEvent(event);
|
||||
return event;
|
||||
}
|
||||
|
||||
public static NotePlayEvent callNotePlayEvent(World world, int x, int y, int z, byte instrument, byte note) {
|
||||
NotePlayEvent event = new NotePlayEvent(world.getWorld().getBlockAt(x, y, z), org.bukkit.Instrument.getByType(instrument), new org.bukkit.Note(note));
|
||||
world.getServer().getPluginManager().callEvent(event);
|
||||
return event;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue