Added functionality to override Factions and other plugins when the ghost is spawned at the correct location (now they spawn at the location you set rather than their faction's home)
Small error fix
v2.0
Tested working also with CB 1.2.4-R0.1 (Build 2042)
Added a lives system where if you lose your lives, you become a ghost
Added a ghost lives system where if you become a ghost too many times and the option in the configuration is enabled, you're banned for a specified amount of time (in seconds)
Changed the database structure and reduced calls to database for efficiency
Added an option in the configuration to have players be ghosts permanently
v1.4
Tested with CB 1.2.3-R0.2
Made it so that ghosts are hidden from players but not ghosts or players with the deathpenalty.see permission (operators get this by default)
Added a feature to make ghosts able to fly around (configurable). This makes them switch to creative mode, but they can't do anything. When they are made a player again, their inventory is cleared so they can't get items from creative.
v1.3
Added the ability to have a location for ghosts to go to when they are made a player again
Added a command to check how much longer a ghost has to wait
v1.2
Changed the saving location of the ghost spawn (you may delete the ghostSpawn value in the config
Made the spawn also save the world (so that you can have a ghost spawn in whatever world you want, not just the main world)
Added a resurrect command (with a permission node or just from the console; If usePermissions is off, admins do NOT get this command by default)
v1.1
Added a feature to let players eat cake and have their ghost time decreased by a value in the config
Added a config value to enable/disable end/nether portal use when being a ghost
Added a death override permission so you don't become a ghost upon death
Fixed a check in the code that would not let you teleport to the spawn on death until you reloaded the server (now it teleports you)