Solved AutoRespawn

Discussion in 'Spigot Plugin Development' started by QAQT0T, Sep 28, 2019.

  1. Is there any way to skip the respawn screen but play player death animation?Base on 1.7.10 or 1.8.8
    Thanks a lot.
     
  2. Only mod
    Because death screen is a client side
     
  3. Code (Java):
    try {
           Class.forName("org.spigotmc.SpigotConfig");
           Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, player.spigot()::respawn, 1L);
    } catch (ClassNotFoundException c) {
           // Ignore
    }