Hard Core Worlds
Hard Core Worlds
Description
This plugin brings something like Hardcore mode to select worlds on your server. Single player Hardcore mode is simulated by these things: Hunger will eventually kill you. Mob Damage is adjusted (by default) to hard difficulty damage, but this is customizable. You/others are banned from chosen worlds after dying in them.
Features
- Optional Server Lives you must have the appropriate permissions if you wish to be banned from the server
- Optional Lives
- Hunger can now bring you down to 0 health (via virtual hunger)
- Mob damage is changed for selected worlds. By default set to the hard difficulty, (Skeletons do 3 hearts, Zombies 3.5 etc.)
- Custom difficulties
- Hardcore worlds ban players upon death
- Can use permissions to ignore bans
- Permissions regulated commands to control banning
Usage
Ban.yml explanation
Mob Difficulty.yml explanation
config.yml explanation
Command List explanation
Permissions explanation
Todo:
Any suggestions?
Known bugs:
none
Unknown bugs:
- Let me know
If you feel compelled for some reason, to give me money, here is the link :)
@Dimitrias
Lets move This to its ticket
@Cayviel
Ok so I gave myself the hcw.ban.server permission, I keep killing myself in many possible ways but it doesn't seem to do anything. Help?
I changed the config as you said.
Also:
17:10:35 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R3-b1846jnks (MC: 1.1) (Implementing API version 1.1-R3)
@Dimitrias
In theory, it should over-ride the essentials ban hammer message with a useful message, but I won't guarantee anything until someone confirms it. If you want server-banning, first add the permission hcw.ban.server to the group of people who you desire to be server-bannable. Then, in config.yml change, "server.use lives" to true. To disable world-banning, just do not mark any world as hardcore in config.yml. By default hardcore mode is turned off. If you still want virtual hunger and custom difficulty, mark hardcore as true for each world, but set the ban duration to zero in those worlds.
If you have any specific suggestions for improvement of the configuration, please let me know. I know it is a bit convoluted.
Is it possible to ignore the whole world thing and make it work globally for the server? Also does it override Essentials' stupid "The Ban Hammer has spoken!" message with a how long there is left message?
@GmK1
Check out the ticket, http://dev.bukkit.org/server-mods/hard-core-worlds/tickets/9-reply-519805-hey-there-i-cannot-get-the/
@Cayviel
Hey there, I cannot get the server lifes option to work. I have given the group the proper permissions. The issue is - when you die on the main world (we only have one, called 'hc'), it doesnt take away a life. *only* when you set the unbannable-world to a different world it starts taking lifes.
But in that case, on your last death, you get teleported to that unbannable world, which doesnt exist! So you do not get banned from the server at all.
We tried all combinations but could not get anyone banned from the server /using lifes) if we only have one single world.
@pyropyro78
The newest version is supposed to give the option for server lives. It is disabled by default, but can be optionally turned on (in the config.yml file). And it can be set per person (in the ban.yml file). Also, there are commands to control the new server lives feature. see the new "Command List explanation" page for how to change lives in-game from people who have permission.
EDIT: Oops I seem to have forgotten to update the command list to include serverlives commands. I just updated it. Check it out!
@Cayviel
That was pretty much what I was wondering. If they would have a command to choose to use the lives or if they would have to use them if they had them. Ya, commands can be a pain at times to code. If you ever add commands for adding lives and using lives I will try and make a paypal listener for it. Though I am not too sure if I will ever have time to accomplish that.
But I digress, Great job on this plugin man, my players are really enjoying it.
@pyropyro78
Done!
Everybody please bug test it, for the bugs that I couldn't find. (v 1.1.4.3)
@pyropyro78
If you mean so that they get banned from the server for the specified amount of time after so many deaths on any world, then sure I can do that. These mechanics modifications are easy. So I'll do it. However, adding commands to control mechanics, now that's tough. For some reason the commands generally take me over 3 times as long to program in... maybe I need a better system for command handling.
@Cayviel
Would it be possible to have the lives to be server not world based? Also, just a quick question, the new lives, do they have an option to use them or are they forced into using them to avoid a death ban?
@labouche10
Then this should please you! v1.1.3.9 adds player lives and commands to control/view the lives (and fixes a few small bugs)
I'm ready to use this but just need the option to add player lives!! Very good job by the way =).
Looking forward to the next update!
Thanks Cecell
@pyropyro78
As of v1.1.3.0 the issue is now fixed. I ended up having to use your suggestion :) at least a variation of it. I have the server waiting 1 tick to move you to the new world, so all the items can drop out of your inventory successfully before moving.
@Cayviel
If you get stumped I will help you where I can. I cant wait to see your new update.
I did not think about that, Maybe just delay the spawn event by about 5sec and increase the ban to 10sec to accommodate that. It would should make them drop their gear and then go to the spawn point.
@crash2323
Lets discuss this here: http://dev.bukkit.org/server-mods/hard-core-worlds/tickets/7-difficulty-with-plugin/#c1
@pyropyro78
You are correct, I did not think about this when programming it. I will fix it!
EDIT: But I it is important that I do not remove that line. Suppose someone dies in a world they should get banned from. Then they will respawn in the same world they died in, nullifying the usefulness of the ban. Don't worry I'll think of something for sure!
EDIT2: Got It! I can just move the code to the playerrespawnevent. (I didn't know this existed when I wrote the code, but I am glad it does!) It wont take long to add it to the code, but I'm doing homework tonight...
I'm confused here and could use some help.
1. I am using Minecraft 1.0 on a bukkit server and the server does not seem to list Hard Core Worlds as a loaded plugin. It created the config files on first load and I do have the HardCoreWorlds.jar in the plugins folder.
2. I set the config.yml as follows: (I assume 0 = no banning) I do not want to ban anyone, just want harder monsters. On testing, the monsters do not seem any harder.
Op Commands: true Server: Ban Duration: 0 Worlds: world: Hardcore: true Mob Difficulty: Hard Ban Duration: 0
So why is this mod not loading? I am not getting any errors. Also, this mod only effects mob damage and not health I assume?
The death event is not being handled properly. They die and drop all items at spawn instead of where they are killed. Any idea how to fix that?
EDIT: one suggestion, instead of handling respawn, let minecraft handle that and comment out this from EntListen.java for a quick fix. I am still testing but it seems to work fine without it.
player.teleport(BanManager.Ereturnworld.getSpawnLocation()); teleport player there.
The problem is that the plugin teleports the player before the server has the player drop the gear.
@Cayviel
Thanks!
@Cayviel
thank you so much, this plugin is perfect now.