HCLives
HCLives
Description
HCLives is a plugin for custom HardCore servers instead of the HardCore mode set by Minecraft. In HCLives you have "Life Credits" and each Credit gives you a respawn. Once you run out of credits you are banned for a temporarily. You can also set it so you can gain lives by killing people. In the default config you gain 1 life for every 3 players you kill. You have a default of 3 starting lives, but you can earn up to 6 lives. You can also change and set the ban time in the config. The default ban time is 6 hours. Admins can have commands to set players Credit and Kills. In the config you can also change the messages it sends to players.
Permissions
- hclives.enabled | Enables the plugin for a player.
- hclives.add | Allows a player to add time to a player's current ban.
- hclives.subtract | Allows a player to subtract time to a player's current ban.
- hclives.unban | Allows a player to unban a player.
- hclives.cangain | Lets a player gain kills to earn credits.
- hclives.settime | Lets a player set the ban time of a player.
- hclives.setcredit | Lets a player set the credits for himself/herself.
- hclives.setcredit.other | Lets a player set the credits for a different player (must also have hclives.setcredit)
- hclives.* | Gives all permissions to a player.
Commands
- /hclives help
- /hclives add <sec|min|hour> <time> <player>
- /hclives subtract <sec|min|hour> <time> <player>
- /hclives unban <player>
- /hclives getcredit
- /hclives getkills
- /hclives settime <player> <secs> <mins> <hours>
- /hclives setcredit <num>
- /hclives gettime <player>
Can still play after losing the last credit.
[11:15:39 ERROR]: Player not registered in players.yml! [11:15:39 INFO]: soandso was slain by Zombie [11:15:40 ERROR]: Could not pass event PlayerRespawnEvent to HCLives v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:299) [spigot1543.jar:git-Spigot-1543] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [spigot1543.jar:git-Spigot-1543] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot1543.jar:git-Spigot-1543] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerList.moveToWorld(PlayerList.java:5 08) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerList.moveToWorld(PlayerList.java:4 47) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java :1210) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PacketPlayInClientCommand.a(SourceFile:5 0) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PacketPlayInClientCommand.handle(SourceF ile:8) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:184 ) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java :81) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:7 31) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:2 84) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:5 84) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java :490) [spigot1543.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:6 28) [spigot1543.jar:git-Spigot-1543] Caused by: java.lang.NullPointerException at me.shawn.HCLives.Main.configFilter(Main.java:542) [?:?] at me.shawn.HCLives.Main.onPlayerRespawn(Main.java:257) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0 _25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.8.0 _25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1 .8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.8.0_25] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:296) [spigot1543.jar:git-Spigot-1543] ... 15 more
@TeamExitium
error
When I used up all of life - I can continue to play on, without blocking.
In the server log is recorded failure:
http://dev.bukkit.org/paste/10655/
P.S.
Blocking starts working only if logged out and back in again.
HCLives will be edited to fix some errors that shouldn't have even be put. I will be adding a method to add and remove credits and an api package if any other plugin developers want to use those methods. I possibly can set towny claims and other such things to be removed on a ban.
~ Cloaking
could you add a command to add or subtract credits from their current total? I want players to be able to gain lives in other ways.
@elyssah So you mean their McMMo Skills and Towny-Lands will be reset? If thats the case we could add support, while we are doing that we could add support for Factions also.
I wonder if you can add support for a few commands for the ban? I'd like to be able to remove a player's Towny-lands and reset their skills when they die, so they have to start completely fresh when they return to the server. But also allow them to keep a few other perks they might earn through donation.