Play party ping sound only when ping is in scene
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -243,6 +243,13 @@ public class PartyPlugin extends Plugin implements KeyListener
|
||||
|
||||
if (config.sounds())
|
||||
{
|
||||
WorldPoint point = event.getPoint();
|
||||
|
||||
if (point.getPlane() != client.getPlane() || !WorldPoint.isInScene(client, point.getX(), point.getY()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
client.playSoundEffect(SoundEffectID.SMITH_ANVIL_TINK);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user