use of pl.themolka.arcade.time.Time in project Arcade2 by ShootGame.
the class ArcadePlayer method play.
public void play(Sound sound, Location position, float volume, float pitch) {
Time now = Time.now();
if (now.minus(this.getLastPlayedSound()).toMillis() >= SOUND_INTERVAL) {
this.getBukkit().playSound(position, sound, volume, pitch);
this.lastPlayedSound = now;
}
}
Aggregations