still working on compatibility, extend copyright
This commit is contained in:
parent
908cd6297c
commit
0188e381b2
4 changed files with 10 additions and 10 deletions
|
@ -48,7 +48,7 @@ All files in this repository are subject to copyright under the GNU Affero Gener
|
|||
|
||||
```
|
||||
Resurrection is a Minecraft plugin that forces players to wait long amounts of time before respawning.
|
||||
Copyright (C) 2021 Bryson Steck
|
||||
Copyright (C) 2021-2022 Bryson Steck
|
||||
|
||||
Resurrection is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -62,10 +62,10 @@ public class CommandResurrect implements CommandExecutor {
|
|||
resurrectPlayer.setGameMode(GameMode.SURVIVAL);
|
||||
for(Player player : Bukkit.getOnlinePlayers()){
|
||||
try {
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_ENDERDRAGON_GROWL, 1, 0);
|
||||
} catch (NoSuchFieldError e) {
|
||||
log.warning("NoSuchFieldError encountered, playing Wither noise instead.");
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_WITHER_DEATH, 1, 0);
|
||||
player.playSound(player.getLocation(), Sound.WITHER_DEATH, 1, 0);
|
||||
}
|
||||
}
|
||||
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + strings[0] + " has been resurrected manually by an admin!");
|
||||
|
@ -114,10 +114,10 @@ public class CommandResurrect implements CommandExecutor {
|
|||
resurrectPlayer.setGameMode(GameMode.SURVIVAL);
|
||||
for(Player player : Bukkit.getOnlinePlayers()){
|
||||
try {
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_ENDERDRAGON_GROWL, 1, 0);
|
||||
} catch (NoSuchFieldError e) {
|
||||
log.warning("NoSuchFieldError encountered, playing Wither noise instead.");
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_WITHER_DEATH, 1, 0);
|
||||
player.playSound(player.getLocation(), Sound.WITHER_DEATH, 1, 0);
|
||||
}
|
||||
}
|
||||
Bukkit.broadcastMessage(strings[0] + " has been resurrected manually by an admin!");
|
||||
|
|
|
@ -149,10 +149,10 @@ public class PlayerListener implements Listener {
|
|||
}
|
||||
for(Player p : Bukkit.getOnlinePlayers()){
|
||||
try {
|
||||
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
|
||||
p.playSound(p.getLocation(), Sound.ENTITY_ENDERDRAGON_GROWL, 1, 0);
|
||||
} catch (NoSuchFieldError e) {
|
||||
log.warning("NoSuchFieldError encountered, playing Wither noise instead.");
|
||||
p.playSound(p.getLocation(), Sound.ENTITY_WITHER_DEATH, 1, 0);
|
||||
p.playSound(p.getLocation(), Sound.WITHER_DEATH, 1, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -245,10 +245,10 @@ public class PlayerListener implements Listener {
|
|||
}
|
||||
for(Player p : Bukkit.getOnlinePlayers()){
|
||||
try {
|
||||
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
|
||||
p.playSound(p.getLocation(), Sound.ENTITY_ENDERDRAGON_GROWL, 1, 0);
|
||||
} catch (NoSuchFieldError e) {
|
||||
log.warning("NoSuchFieldError encountered, playing Wither noise instead.");
|
||||
p.playSound(p.getLocation(), Sound.ENTITY_WITHER_DEATH, 1, 0);
|
||||
p.playSound(p.getLocation(), Sound.WITHER_DEATH, 1, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ version: '1.3'
|
|||
website: https://brysonsteck.net/resurrection.html
|
||||
description: Makes players wait large amounts of time before respawning!
|
||||
database: false
|
||||
api-version: 1.16
|
||||
api-version: 1.9
|
||||
|
||||
commands:
|
||||
about:
|
||||
|
|
Loading…
Add table
Reference in a new issue