added prefix and changed sound
This commit is contained in:
parent
3a9878aebc
commit
9484cb4152
3 changed files with 7 additions and 6 deletions
Binary file not shown.
|
@ -130,15 +130,15 @@ public class PlayerListener implements Listener {
|
||||||
for (PotionEffect effect : p.getActivePotionEffects())
|
for (PotionEffect effect : p.getActivePotionEffects())
|
||||||
p.removePotionEffect(effect.getType());
|
p.removePotionEffect(effect.getType());
|
||||||
p.setGameMode(GameMode.SURVIVAL);
|
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!");
|
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
|
||||||
if (p.getBedSpawnLocation() != null) {
|
if (p.getBedSpawnLocation() != null) {
|
||||||
p.teleport(p.getBedSpawnLocation());
|
p.teleport(p.getBedSpawnLocation());
|
||||||
} else {
|
} else {
|
||||||
p.teleport(spawn);
|
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);
|
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection);
|
||||||
|
|
||||||
|
@ -221,15 +221,15 @@ public class PlayerListener implements Listener {
|
||||||
for (PotionEffect effect : p.getActivePotionEffects())
|
for (PotionEffect effect : p.getActivePotionEffects())
|
||||||
p.removePotionEffect(effect.getType());
|
p.removePotionEffect(effect.getType());
|
||||||
p.setGameMode(GameMode.SURVIVAL);
|
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!");
|
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
|
||||||
if (p.getBedSpawnLocation() != null) {
|
if (p.getBedSpawnLocation() != null) {
|
||||||
p.teleport(p.getBedSpawnLocation());
|
p.teleport(p.getBedSpawnLocation());
|
||||||
} else {
|
} else {
|
||||||
p.teleport(spawn);
|
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);
|
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection);
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ version: '1.1.1'
|
||||||
website: https://brysonsteck.net/resurrection.html
|
website: https://brysonsteck.net/resurrection.html
|
||||||
description: Makes players wait large amounts of time before respawning!
|
description: Makes players wait large amounts of time before respawning!
|
||||||
database: false
|
database: false
|
||||||
|
prefix: Resurrection
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
about:
|
about:
|
||||||
|
|
Loading…
Add table
Reference in a new issue