Make fake NPC players

Discussion in 'Plugin Development' started by Tythus, May 7, 2014.

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

    Tythus

    What I'm wanting to do is on player death it will make an npc player of the player that was just killed in the bed animation state to act as a kind of body that gets removed after a few minutes. I've been able to change the animation of players to bed mode so far but have been unable to make npcs to fulfill this role wwould anyone know how I would go about doing this?
     
  2. Offline

    LeoFSU

    Surely it is possible to spawn in players, but there are issues with this:
    • It might create side effects because other plugins are not prepared to see fake player entities
    • It is complicated to do if you don't use 3rd party libaries. It requires a lot of non-bukkit, native code.
    BKCommonLib has support for creating players AFAIK.
     
Thread Status:
Not open for further replies.

Share This Page