is the respawn listener working?

This commit is contained in:
Bryson Steck 2021-06-06 12:44:23 -06:00
parent c1981178a4
commit 80b00aca96
3 changed files with 1 additions and 0 deletions

View file

@ -37,6 +37,7 @@ public class PlayerListener implements Listener {
@EventHandler @EventHandler
public void onPlayerRespawn(PlayerRespawnEvent e) { public void onPlayerRespawn(PlayerRespawnEvent e) {
Player p = e.getPlayer(); Player p = e.getPlayer();
p.sendMessage("You have respawned");
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW,1000000000, 500)); p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW,1000000000, 500));
p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 1000000000, 500)); p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 1000000000, 500));
} }