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
Sorry about the late update. I'm working diligently to get version 2.0 out as soon as possible. Just need to iron out a few bugs and polish up a few things :D
@Thokas
Plugins: FoundBoxx, HideStream, AntiJoinLeaveMsg, GroupManager, WorldEdit, SpamGuard, Vault, pvpstats, CombatTag, WorldGuard, PluginList, iConomy, AuthMe, Permissions, WorldSaver, SimpleChatChannels, BKCommonLib, Lockette, ZavAutoMessager, NoCheat, mcMMO, NoLaggChunks, Essentials, Residence, WorldBorder, Jobs, NoLaggItemBuffer, EssentialsProtect, EssentialsSpawn, CreativeGates, NoLaggItemStacker, LogBlock, LWC, dynmap, NoLaggMonitor, NoLaggExamine, ChestShop, EssentialsChat, Factions, Dynmap-Factions
Thats teh plugisn i use
Can you make it so that you can be a ghost until database is reset?
@antanas258
Do you share any of the plugins we listed?
As i saw its not only for me crashing server :) no errors or warnings just turns off
@AuraL17
AuraL and I got together and we share these plugins "Worldborder, Worldguard, Worldedit, Oreobfuscator, Nocheat, Essentials."
Also, when I last attempted using the plugin I was using Craftbukkit R.03
@Thokas
Can you tell me all your plugins? To see if we have a common one that is making it crash
Sorry for the late reply. Im working with creating a hardcore LP server for a friend where if he dies its game over, but he has extra players working towards the goal with him.
Just started using this on my live server today. Had a crashing problem as well. No errors in console. Removal of the plugin resolves the issue. I'm using the latest build of CPP if that matters any.
My server has been crashing a lot since I installed this plugin and it has never crashed before. I uninstalled it but I will report back to rule it out if it continues to crash.
EDIT: This has been proven to be causing my server to crash every 20min-4hours and I only have basic plugins like worldedit, worldguard, essentials. I like the plugin and I thank the author but avoid this one.
Someone can teach me how to coding? Because I am tired to just writing a suggestion and waiting for a help, I want make something with my own hand (I have alot of great ideas but even a single java code I cannot write, damn)
@VeryBigCorp Thank you very much!
If you had put the source on Github, I would love to help. But this is good too.
@albireox
I'll put the link in the description. Keep in mind that the source I'll be uploading is for 2.0, so it won't be quite the same. I'm currently optimizing 2.0, so the code you see is not near final :P
This is GPL, right?
Could you send me the source please?
@cam13619
Well not currently. I could implement it. Why exactly would you want to do that?
Is there a way to make somebody a ghost permanently if they die?
Plugins: FoundBoxx, HideStream, AntiJoinLeaveMsg, GroupManager, WorldEdit, SpamGuard, Vault, pvpstats, CombatTag, WorldGuard, PluginList, iConomy, AuthMe, Permissions, WorldSaver, SimpleChatChannels, BKCommonLib, Lockette, ZavAutoMessager, NoCheat, mcMMO, NoLaggChunks, Essentials, Residence, WorldBorder, Jobs, NoLaggItemBuffer, EssentialsProtect, EssentialsSpawn, CreativeGates, NoLaggItemStacker, LogBlock, LWC, dynmap, NoLaggMonitor, NoLaggExamine, ChestShop, EssentialsChat, Factions, Dynmap-Factions
So we started again and no errors just server reboots after 2min and about 30 ppl logs in and its down we rly what this plugin on our server but it just won;t work please elp somehow :)
@antanas258
I'm running this with Factions and I'm having no issues. I think it may be a coincidence that you installed this plugin when your others issues started happening.
@antanas258
I'm not sure why it would do that. Do you have the error to post? I'll definitely fix it.
Plugin removed factions data and crashed java with other plugins i don;t finkt its friendly plugin wokrs perfect then you start it but than yo uadd otehr plugins it crash everythink