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.
Permission | Description |
---|---|
deathpenalty.hearghosts | Allows or disallows the player to listen to ghosts speak when he or she is not a ghost |
deathpenalty.changespawn | Allows or disallows the player from changing the spawn for ghosts |
deathpenalty.ignore | Makes a player not become a ghost when they die if this is true |
deathpenalty.resurrect | Allows a player to resurrect other players (admins do not get this by default) |
deathpenalty.see | Allows a player to see ghosts when not a ghost; Operators get this by default |
deathpenalty.add | Allows a player to add lives for other players |
Configuration
Value | Description |
---|---|
ghostTime | How long a player will be a ghost for (in seconds) when they die |
usePermissions | Whether or not to use permissions. If this is false, only admins can change the spawn and hear other ghosts. |
cakeAmount | The 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. |
disablePortals | Enable or disable a ghost from using end and nether portals |
ghostsFly | Makes 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. |
lives | Number of lives a player has before they become a ghost again |
maxGhostTimes | Number 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. |
banTime | How long (in seconds) a player is banned when their ghost times are depleted and banOnGhostLifeDepletion is enabled |
permaGhost | Whether 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.
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 anythingFix an issue where ghosts are not hidden from playersHave 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
This works completely with Bukkit 1.7.9. I wanted to confirm for anyone who wanted to use it. There's an issue with ghosts becoming hungry and then when they become human, they die again of starvation; but other than that, everything works well.
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!
@CasparW
You can't read can you? The topic poster is wanting someone to either continue this clearly dead plugin or simply update it.
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
Someone is trying to copyright you go to:
https://forums.bukkit.org/threads/deathpenalty-update-or-new-plugin.162798/
I am going to update this, if you are not ok with this, message me and I will take it down :)
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.
Please update the plugin, this is exactly what I need on my server with my friends :D
Its working with 1.4.5, but seems a bit buggy D:, but would be great if this would be updated...
Can you make the ghost shriek or make some noises to scare the player?
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
Hey, would you update this? It's so cool :3
Hello,
I have a nagging little bug for you, this happens after a ghost dies, in this case, an already dead player fell through into the void, which killed him. When that happens, the following error is reported in console:
The player then looses connection to the server, and upon rejoin, the server crashes. There's no errors when it crashes, and no shut down sequence, it just dies.
Thanks for putting your time and effort into making this great plugin!
Edit 20/7/12 13:36 GMT: I can confirm that the server dying seems to be caused by this plugin. Here's some of the java dump file, you might find useful.
Hello,
This plugin works great! Thanks so much for making it - we're running an RPG server, and have given our 'Priest' class the ability to hear, see, and raise the deceased players. It's working out super cool!
The only we have is that dead players still have a diminishing hunger bar. Is there a way to disable the hunger bar in dead players? Our players respawn with a half hour ghost time unless a priest resurrects them, and they keep complaining about the ghost hunger bar.
Thanks so much, and keep up the great work!
ralphhogaboom
Yes, please make it so ghosts are able to use some commands. For example, my server has Authme, instead of having them wait at the login until they are revived, I want to allow them to log in and roam as a ghost. Also, can you make an option where they become ghosts on the spot they died? Thanks.
Please make it so that you can use permissions to make it so ghosts can use commands, and permissions that make it so ghosts can open doors and use switches! Please
Please add a new features! Allow a ghosts to write some commands (We can add it on the .yml files) Support a anticheat too, especially for fly anticheat
@MERCHANToDEATH
Ghosts can't
Be seen by non-ghosts
I have a couple of questions. First, does the player become invisible to living players when they are a ghost? Can ghosts see each other? Second, can players respawn as a ghost at the spot where they died? If you could add this functionality it would be great.
The developer seems to not update it anymore, there is bugs but he does not fix it until now.