(4.0.0 - 4.21.1) 3.0.3 (4.0.0 - 4.21.1) 3.0.2 (4.0.0 - 4.21.1) 3.0.1 (4.0.0 - 4.21.1) 3.0.0 (4.0.0 - 4.21.1) 2.0.0 (4.0.0 - 4.21.1) 1.0.0 (5.0.0 - 5.16.0) 3.0.4
Update | State |
---|---|
Can be set to work or not | |
added sound when hitting or archery hits the enemy | |
Can access to KillDeathSound |
---
# config.yml
#
# ██╗░░██╗██╗██╗░░░░░██╗░░░░░██████╗░███████╗░█████╗░████████╗██╗░░██╗░██████╗░█████╗░██╗░░░██╗███╗░░██╗██████╗░
# ██║░██╔╝██║██║░░░░░██║░░░░░██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██║░░██║██╔════╝██╔══██╗██║░░░██║████╗░██║██╔══██╗
# █████═╝░██║██║░░░░░██║░░░░░██║░░██║█████╗░░███████║░░░██║░░░███████║╚█████╗░██║░░██║██║░░░██║██╔██╗██║██║░░██║
# ██╔═██╗░██║██║░░░░░██║░░░░░██║░░██║██╔══╝░░██╔══██║░░░██║░░░██╔══██║░╚═══██╗██║░░██║██║░░░██║██║╚████║██║░░██║
# ██║░╚██╗██║███████╗███████╗██████╔╝███████╗██║░░██║░░░██║░░░██║░░██║██████╔╝╚█████╔╝╚██████╔╝██║░╚███║██████╔╝
# ╚═╝░░╚═╝╚═╝╚══════╝╚══════╝╚═════╝░╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝╚═════╝░░╚════╝░░╚═════╝░╚═╝░░╚══╝╚═════╝░
#
# You can see the list of sound effects at this link: "https://www.digminecraft.com/lists/sound_list_pe.php"
# Player Death
death:
addsound: true
sound: "random.explode" # Sound name
volume: 1 # Volume sounds
pitch: 1 # Pitch sounds
# Player Kills
kill:
addsound: true
sound: "random.levelup" # Sound name
volume: 1 # Volume sounds
pitch: 1 # Pitch sounds
# Player Hit & Archery
hit:
addsound: true
sound: "random.orb" # Sound name
volume: 1 # Volume sounds
pitch: 1 # Pitch sounds
...
KillDeathSound::getInstance()
$player = $event->getPlayer();
$soundName = "random.explode";
$volume = 1;
$pitch = 1;
KillDeathSound::getInstance()->PlaySound($player, $soundName, $volume, $pitch);
Direct Download
button to download the pluginKillDeathSound.phar
into the file plugins