★ Sounds

Jun 10, 2018
★ Sounds
  • A common use for this static Sound class (as replacement for the default Bukkit class) would be the Player.playSound() method.
    Code:
    p.playSound(p.getLocation(), TTA_Sounds.GetSoundByName("ENTITY_BAT_TAKEOFF"), 10, 1);
    The choosen sound can also be called directly from the sound class.
    Code:
    p.playSound(p.getLocation(), TTA_Sounds.BAT_TAKEOFF.getSound(), 10, 1);
    Informations:
    "ENTITY_BAT_TAKEOFF" is a example for a sound, replace it with every sound you like (you can use 1.8 to 1.12 sound names)

    TTA will always select automatically the correct version for your server.

    A full list of all sounds: