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 :)
Thanks so far for the great feedback. One of the best developers ever.
I have one more problem now tho. It ovverrides my other ban system. People who where banned can log in again. :/ Have to ban them with your plugin for it to work again..
Is there any way to make it not fuck up my ban plugin?
I am at the moment running the essentials one, btw.
I'll have to disable this awesome plugin until there is a way to fix this :(
@Cayviel
What matters is that you are actively working on kneading out the bugs. Would rather download multiple times than download once and never get an update or a fix. =) Thanks so much!
I wanted to apologize to everyone for updating so frequently, it must be annoying to download and redownload.
@oleerik
Yes I can change the statement to be more informative, it's a good idea. I don't want to upload another file, until I make more changes though. Hope you can understand. It shouldn't be long though, at the rate I that I keep find more and more bugs >.>
Great! :D
Two more things then. Where is the "buy me a drink" button?
Is it possible to give people a message like "You are expelled from this world for 8 more hours because you died" instead of "You cant go to "world" because you died"?
@oleerik
Thanks! It should be fixed now (v1.0.1) Your description of what lead up to the event was very useful in debugging. It also happened when the player changed worlds.
Dear dev,
I love this plugin.
I have a problem however.
Whenever a player dies the config for that world is reset.
Here is the config I start the server with:
world:
Hardcore: false
Mob Difficulty: Hard
Ban Duration: -1
Redstone:
Hardcore: false
Mob Difficulty: Hard
Ban Duration: -1
redsurvival:
Hardcore: false
Mob Difficulty: Hard
Ban Duration: -1
redsurvival_nether:
Hardcore: false
hardcore:
Hardcore: true
Ban Duration: 8
Mob Difficulty: Hard
hardcore_nether:
Hardcore: true
Ban Duration: 7
Mob Difficulty: Very Hard
Here is the config that is suddendly active when a player dies in hardcore
world:
Hardcore: false
Mob Difficulty: Hard
Ban Duration: -1
Redstone:
Hardcore: false
Mob Difficulty: Hard
Ban Duration: -1
redsurvival:
Hardcore: false
Mob Difficulty: Hard
Ban Duration: -1
redsurvival_nether:
Hardcore: false
hardcore:
Hardcore: true
Ban Duration: -1
Mob Difficulty: Hard
hardcore_nether:
Hardcore: true
Ban Duration: 7
Mob Difficulty: Very Hard
Is this a problem caused by the fact that I use the worldname hardcore?
Well said, @AvariceSyn
@bigscary Yes, that does do something similar, but there is more feature control available when implemented in the way it is currently programmed. Your idea is not bad though, would you me to make that mod? I could also make it a hardcore mod if you do.
@Viper150 It is fixed in 1.0.0 ! I did it by implementing a necessity to remove a permission from people who have all permissions by adding "- -hcw.the permission to remove." This way neither admins nor basic people are constantly affected by annoying things, by default.
@bigscary
The POINT is for them to be banned from a world/server. ^_^ Hardcore/deathban is quite a popular server feature. With bans being set to a configurable amount of time, the users will be able to play once their ban is up.
So the problem you're trying to solve is that you want to see a hardcore mode experience, but in multiplayer, right? I agree this solution works to an extent because a player can't keep playing in a world once he dies there. But unless you're constantly building new worlds (very expensive), that means players who die have to wait a while to play on your server again.
For a different solution, what if you simply respawned players very far away from both where they spawned the last time and where they died? The effect will be the same - they're reduced to nothing (their drops and builds are too far away to be helpful) just like a new player would be, BUT they'd get to respawn and start playing again on your server immediately, rather than going through a world-switching process or waiting for the server to reset.
@Viper150
Cool Thanks! Yes you can remove permissions in PEX. I just did it. It took me longer than I wanted.
Just add the line,
- -hcw.ban.world.*
above the line
-'*'
it has to be above the line with the asterisk , or else it wont work
@Cayviel
Alright, I figured that was the issued because I demoted myself and it began to work. It would be nice if you could fix that for 1.0.0 because I'm using PEX and I don't think I can take away permissions. Also, I've noticed that once you are banned from a world it says "You cannot go to world <current world> because you died," instead of "You cannot go to world <Hardcore world you tried entering> because you died." Thanks for the help as well, been looking for an awesome plugin like this for a while! Great work :)
@Viper150
Hi again Viper! Are you using the most recent version of this plugin 0.9.9? (I think it still needs approval so you probably are not using it. EDIT: I just tested it with 0.9.7 I still am not being banned from server) Delete your HardCoreWorlds folder in your plugin folder. Also, I just tested it, I don't seem to be having your issue. So! I believe I know what is happening. I bet you are using Permissions, right? That is the one thing I haven't been able to test. I know it is kind of backwards since you are the admin, but remove the permission "hcw.ban.world.*" and "hcw.ban.world.<nameofworld>"from yourself and see if you still have the problem.
EDIT: if this is the issue, I will fix it for the version 1.0.0 release
I'm not sure if I'm doing something wrong, but when I die in my Hardcore world, it tells me I have 5 seconds before it bans me from the server. From what I read in the description, it says that it just bans the user from "that" world only, not the server. I am also using Multiverse if that has to do with anything. Thanks.
EDIT: And I just found that even if I die on my "unbannable" world that isn't even on hardcore mode, I get perm banned and added into the "banned-players" server file. :(
EDIT2: After I get banned, in the "Ban" file, instead of a world name under my name, it just says "Server". Like so:
Server:
Ban: true
Ban Began: 131
Ban Ends: -1
@Cayviel
♥ Ty so much! Server's currently offline, but whenever I can poke the owner will be testing it out ASAP!
@tehMorag
Shouldn't have an issue with multiverse since this plugin doesn't govern world generation or all-encompassing world management. The only thing that may be an issue is the world difficulty setting in the config of multiverse, however I still don't believe that it will cause a conflict because MV implements a way to manage more vanilla-like features and that this plugin would take precedence as Cayviel said they'd add.
@Viper150 There I fixed the problems! (it seems.) However, since I haven't thoroughly tested it again, I didn't label it v1.0.0 yet, but left it labeled v0.9.7.
@AvariceSyn Major update! I have now implemented the permisssions that AvariceSyn suggested. It is late now, I'll update how to use them later.
@tehMorag I don't use Multiverse myself, but a different multi-world management mod, and it works well with it, so I think it should be compatible with Multiverse too. But to be sure, what specifically were you wondering about? I don't think there will be any conflicts. The ban method implemented in this mod shouldn't conflict with other ban managers. If there are some weird conflicts please let me know! HOWEVER If you use another mod which modifies difficulties of creatures, I don't know what will happen. Either the other mod, or this mod will take precedence over the other. Perhaps I can add an option to disable the custom difficulty system implemented in this mod,or an option to modify the priority level of this mod... yeah that's what I think I'm gonna do.
How does this work with Multiverse?
I am also getting a config.yml folder with nothing inside. I'm using Build #1638 of Bukkit (craftbukkit-1.0.1-R2-SNAPSHOT.jar). And in the error message, it says "java.io.FileNotFoundException: plugins\HardCoreWorlds\config.yml (Access is denied)"
Oops, somehow I've neglected to subscribe to this. xD
Thanks for implementing those changes! When I said mob damage modifiers, add the ability to modify the amount of damage each mob does per-world, so that we can change the damage of mobs in one of the hardcore worlds, but have them be unaffected in others.
I'm currently running a server which has four non-nether, non-End maps with different modes: Adventure, Survival RPG, Creative, and Hardcore
Multiverse governs which worlds are in what gamemode and the difficulty, but everyone loves the ability to do a little fine tuning.
Can't wait for future updates. ^^
@Devboi
Sure. I do not know why you have a config folder, it should be a file. I just deleted all my files and ran it, and it generated a config.yml file like it was supposed to. Maybe that's because I have a newer, dev version. I'll upload what I have right now for you, see if that fixes it. Make sure to delete your old config.yml folder, if that is what you had.
You only want one hardcore world. That is easy enough. Worlds should default to not hardcore in this new version (0.9.3) Just edit/add the world in the config.yml you want to be hardcore. I haven't had much time to test code, so I don't know how well it works though, which is why I haven't uploaded it yet. Let me know how it goes.
EDIT: Also, I will update the usage section on this site, eventually.
The config folder is empty....
I only want one world to be a hardcore world, can u help me with this? thanks