added prefix and changed sound

This commit is contained in:
Bryson Steck 2021-11-29 13:24:25 -07:00
parent 3a9878aebc
commit 9484cb4152
3 changed files with 7 additions and 6 deletions

View file

@ -130,15 +130,15 @@ public class PlayerListener implements Listener {
for (PotionEffect effect : p.getActivePotionEffects())
p.removePotionEffect(effect.getType());
p.setGameMode(GameMode.SURVIVAL);
for(Player p : Bukkit.getOnlinePlayers()){
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
}
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
if (p.getBedSpawnLocation() != null) {
p.teleport(p.getBedSpawnLocation());
} else {
p.teleport(spawn);
}
for(Player p : Bukkit.getOnlinePlayers()){
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
}
}
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection);
@ -221,15 +221,15 @@ public class PlayerListener implements Listener {
for (PotionEffect effect : p.getActivePotionEffects())
p.removePotionEffect(effect.getType());
p.setGameMode(GameMode.SURVIVAL);
for(Player p : Bukkit.getOnlinePlayers()){
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
}
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
if (p.getBedSpawnLocation() != null) {
p.teleport(p.getBedSpawnLocation());
} else {
p.teleport(spawn);
}
for(Player p : Bukkit.getOnlinePlayers()){
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
}
}
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection);

View file

@ -5,6 +5,7 @@ version: '1.1.1'
website: https://brysonsteck.net/resurrection.html
description: Makes players wait large amounts of time before respawning!
database: false
prefix: Resurrection
commands:
about: