playSound() error

Sponge Build: spongeforge-1.10.2-2079-5.0.0-BETA-1724
Forge Build: 2079
Java Version: 1.8.0_101

I’ve created a basic command which plays a sound for a Player(cast to Viewer).

Source: viewer.playSound(SoundTypes.CREEPER_HISS, player.getLocation().getPosition(), 1);

In game chat gives an error of: “Error occurred while executing command: CREEPER_HISS”

Note: The command I use is /Sound, “command” in the above error refers to whichever SoundType I try to play.

The server errors with “java.lang.NoSuchFieldError: CREEPER_HISS”, full server error below.

EDIT: Spoiler tag seems to not work, moved error to:

CREEPER_HISS was renamed to ENTITY_CREEPER_PRIMED. Make sure you’re using API 5.0.0-SNAPSHOT if you’re running it on 5.0.0 SpongeForge.


Ah I see, yes, I was using an older API since it’s the latest Release build. Thank you.