Solved respawn event not working for me :/

Discussion in 'Spigot Help' started by FL7, Mar 17, 2020.

Thread Status:
Not open for further replies.
  1. FL7

    FL7

    @EventHandler
    private void Respawn (PlayerRespawnEvent e){

    Player p = e.getPlayer();

    p.getInventory().clear();
    p.setWalkSpeed(0);
    p.setFoodLevel(1);
    p.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 20 * 10000000, 100000));
    }

    when i respawn its not working
     
  2. Strahan

    Benefactor

    Give it a tick delay.

    ...and for future reference, wrap your code in [CODE] tags to preserve formatting.
     
  3. FL7

    FL7

    how ? (i'm new btw)
     
  4. Strahan

    Benefactor

Thread Status:
Not open for further replies.