is the respawn listener working?
This commit is contained in:
parent
c1981178a4
commit
80b00aca96
3 changed files with 1 additions and 0 deletions
Binary file not shown.
Binary file not shown.
|
@ -37,6 +37,7 @@ public class PlayerListener implements Listener {
|
|||
@EventHandler
|
||||
public void onPlayerRespawn(PlayerRespawnEvent e) {
|
||||
Player p = e.getPlayer();
|
||||
p.sendMessage("You have respawned");
|
||||
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW,1000000000, 500));
|
||||
p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 1000000000, 500));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue