DeathPenalty

Death

Quote:

Yeah, yeah I died. I'll just respawn. What is this? I can't do anything!?

Death can be extremely boring. Why not make your players become ghosts when they die? This can also be a better solution for hardcore servers, instead of them being banned for a number of hours. You can still ban them if they die too much with this plugin.

Being a ghost

When a player dies, they either teleport to a location defined by somebody who can change the spawn or to their spawn. They're now a ghost for a predefined time. A ghost can't do much. All he or she can really do is chat to other ghosts or people that have the deathpenalty.hearghosts permission.

Ghosts can't

  • Break blocks
  • Damage players and mobs
  • Be seen by non-ghosts
  • Execute commands
  • Open chests and doors, use brewing stands and enchanting tables, etc
  • Die
  • Take damage

Credit for the idea goes to xeNium on the forums!

Permissions

There aren't many permissions, but they work with PermissionsEx, PermissionsBukkit and probably other permissions plugins.

PermissionDescription
deathpenalty.hearghostsAllows or disallows the player to listen to ghosts speak when he or she is not a ghost
deathpenalty.changespawnAllows or disallows the player from changing the spawn for ghosts
deathpenalty.ignoreMakes a player not become a ghost when they die if this is true
deathpenalty.resurrectAllows a player to resurrect other players (admins do not get this by default)
deathpenalty.seeAllows a player to see ghosts when not a ghost; Operators get this by default
deathpenalty.addAllows a player to add lives for other players

Configuration

ValueDescription
ghostTimeHow long a player will be a ghost for (in seconds) when they die
usePermissionsWhether or not to use permissions. If this is false, only admins can change the spawn and hear other ghosts.
cakeAmountThe amount to reduce a ghost's time when a player eats cake (they may only do this once when they're a ghost). If this value is 0, it will not heal any.
disablePortalsEnable or disable a ghost from using end and nether portals
ghostsFlyMakes players able to fly when they are in ghost form. This switches the game mode to creative, but they can not keep the items when they are made a normal player again.
livesNumber of lives a player has before they become a ghost again
maxGhostTimesNumber of times a player may become a ghost before they are banned (doesn't do anything unless banOnGhostLifeDepletion is enabled); Set this to 0 if you don't want to use the banning system.
banTimeHow long (in seconds) a player is banned when their ghost times are depleted and banOnGhostLifeDepletion is enabled
permaGhostWhether or not ghosts are permanently ghosts

Commands

dp setghostspawn
Sets the spawning location for players when they die and become ghosts. This command may be executed only by a player.
dp setafterghostspawn
Sets the spawning location for a ghost when he or she is made a normal player again. This may be executed only by a player.
dp resurrect <player>
Resurrects the player if he or she is a ghost. The executor must have the permission or be the console. Operators (admins) don't get this by default. This can be executed from the console, however.
dp unban <player>
Unbans a player if they are banned due to depleting their ghost times. This may be run from only the console.
dp addlife <player>
Adds life to a player (does not increase past the maximum set in the configuration); The permission node deathpenalty.add is required to run this command. Otherwise, it can be run from the console.
dp fixghosts
Forces ghosts to become hidden. This is best used for when you reload permissions and you changed a player's deathpenalty.see permission and reload. If you use the server reload command, you don't need to use this.
dp reload
Reloads the configuration from the file.
timeleft
Shows a ghost how much time they have before resurrection. If a player is not a ghost, nothing will appear.

Buy me a drink :D

Todo

  • Add a feature so that when a ghost eats cake, their incorporeal time is decreased.
  • Add a feature to allow ghosts to fly but still not do anything
  • Fix an issue where ghosts are not hidden from players
  • Have a certain number of lives before you become a ghost.
  • Add a ghost lives system where if you become a ghost too many times, you become banned for a certain period of time.
  • Have separate permissions for ghosts

Source on GitHub

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Collserra Collserra Aug 13, 2013 at 22:49 UTC - 0 likes

    There is a plugin that allows transparent players, called Ghost Players <<code http://dev.bukkit.org/bukkit-plugins/ghost-player/>>

    <</code>> There. I think you should look into implementing this code into your plugin, or talk to the developer to merge these? That would be perfection!

  • Avatar of xakiru xakiru Jul 31, 2013 at 06:54 UTC - 0 likes

    @CasparW: Go

    You can't read can you? The topic poster is wanting someone to either continue this clearly dead plugin or simply update it.

  • Avatar of PyraZz PyraZz Jul 27, 2013 at 04:07 UTC - 0 likes

    I wanna to update this plugin, but he is absent since May 2013, i don't know if he update this plugin, i only wanna one new :c

  • Avatar of CasparW CasparW Jul 26, 2013 at 08:15 UTC - 0 likes

  • Avatar of dudemanmax dudemanmax Jul 26, 2013 at 06:42 UTC - 0 likes

    I am going to update this, if you are not ok with this, message me and I will take it down :)

  • Avatar of mc_crinkle mc_crinkle Jun 13, 2013 at 18:41 UTC - 0 likes

    Please update this, atm when a person is a ghost this plugin REALLY lags them out, then monsters suddenly zoom right up to them as they respawn, like after a big lag spike.

  • Avatar of ronneke1996 ronneke1996 Jan 28, 2013 at 13:51 UTC - 1 like

    Please update the plugin, this is exactly what I need on my server with my friends :D

    http://minecraft-mp.com/banner-21227-2.png

  • Avatar of KoBrA1135 KoBrA1135 Dec 16, 2012 at 07:38 UTC - 0 likes

    Its working with 1.4.5, but seems a bit buggy D:, but would be great if this would be updated...

  • Avatar of Hellangel98 Hellangel98 Dec 07, 2012 at 04:39 UTC - 0 likes

    Can you make the ghost shriek or make some noises to scare the player?

  • Avatar of LeviTrueblade LeviTrueblade Nov 13, 2012 at 23:04 UTC - 0 likes

    Dude this would be great. I'm looking for a replacement for my server's death plugin and your's is great. Please tell me if this works on the update 1.4

Facts

Date created
Mar 12, 2012
Categories
Last update
Apr 22, 2012
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
DeathPenalty
Downloads
5,745
Recent files

Authors