Humanity
Welcome to the Humanity plugin, this plugin is inspired by a game mode in DayZ by the same name. The plugin assigns roles to players based upon how they behave. It ranges from Hero and Survivor down to Bandit. If you damage a player you loose points, but you can restore them by giving food and potion items. Based upon how many points a player got, the player gets a new role.
The plugin is great for survival servers where you don't know who to trust. It also helps to to create a more friendly environment as it encourage players to help each other and not killing them.
Click here to get started.
Click here for a list of commands and permissions.
Click here to see the config.
- Ranks: Survivor, Hero & Bandit (Changeable)
- MySQL support
- Display role in chat
- Display role and points above player head
- Highly Configurable
- Light-weight
- Custom settings per permission.
- Auto updater
- Metrics support here
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true
The plugin also got an auto updater, which will check for the latest version and download or only notify if it finds a method. If you want to disable this, go into the config.yml and set "Updater.Enable" to false
Feature - Priority
- Ability to change output language - low
- None
If you find a bug please comment below. Also if posting console errors or configs, please use PasteBin
This plugin uses teams to change player head prefix and display current points above the players head. This can be disabled in the config, but if enabled then it will not work with other plugins editing player names or scoreboards.
List of known plugins to break while prefix and points display is enabled with:
- TagAPI
Alas not sure this is still supported :(
Written my own instead :)
Any chance for a 1.8 update? Please? :)
It doesn't seem to be saving player points, if you don't use mySQL. After server restart all points just go back to 2500.
Is there any API support? I would like to use the humanity value in a small debug window on the side of the screen.
Hello guys, humanity going great :D really good on rpg server
one little issue I think with citizens when I strike a npc I get this
@CubeToastIsBestToast
Sorry for the late response, I simply haven't seen it before now :P
Thank you for the report, (and a very nicely formatted report ;))
The exception in the log seams to be caused by an invalid players.txt. First you should backup your humanity folder. Then try to renaming the players.txt and get it to generate a new one. Try again and see if that fixed the problem. If so then we know that it is the invalid formatted players.txt. If you send it over paste bin or similar then I might be able to spot the problem. Also on a little side note, it is recommended to use SQL just for general performance improvements and stability ;).
As for the hostile mob slaying then that was never a feature so don't quite know where you got that from... I could add it to the todo list if it is much requested from your end.
Hey @xGamingDudex and @Arton123 ,
Got a bit of an issue, not sure if it is a configuration that I have buggered up, or if this is a bug in the Humanity plugin itself (or a conflict with one of my other plugins((or something else entirely!))), but I'm hoping someone of your expertise might be able to shed some light on that very question.
So, here's the situation...
I'd like to restrict players from entering certain areas based on their Humanity "rank" or grouping. In order to achieve this, I'm using PEX and WorldGuard in conjunction with Humanity. What I've gone and done is set up PEX groups for Hero, Survivor and Bandit respectively, granted the groups.[groupname] permission nodes to them, and defined regions with entry flags based on pex groups. In order to make the PEX groups coincide with the ranks in Humanity, I set the "ToHero: ", "ToSurvivor: ", "ToBandit: ", "FromHero: ", etc. configuration nodes in the Humanity config.yml to reflect that function. (Full configs for all relevant plugins pastebin'd below).
First problem is: I don't seem to be receiving Humanity when I kill hostile mobs. I know this has got to be something on my end, so, perhaps you could find that for me and tell me what I've done wrong :)
Second problem is the tricky one...
When I use the "/hSetPoints" command in the console, or in game, Humanity throws the following exception:
30.09 00:28:16 [Server] INFO ... 3 more
30.09 00:28:16 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
30.09 00:28:16 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)
30.09 00:28:16 [Server] INFO at me.xADudex.Humanity.ScoreManager$1.run(ScoreManager.java:491)
30.09 00:28:16 [Server] INFO at org.bukkit.Bukkit.getOfflinePlayer(Bukkit.java:436)
30.09 00:28:16 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getOfflinePlayer(CraftServer.java:1395)
30.09 00:28:16 [Server] INFO at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
30.09 00:28:16 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be blank
30.09 00:28:16 [Server] INFO at java.lang.Thread.run(Thread.java:745)
30.09 00:28:16 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
30.09 00:28:16 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
30.09 00:28:16 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
30.09 00:28:16 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin Humanity v2.4 generated an exception while executing task 50
30.09 00:28:16 [Server] WARN Exception in thread "Craft Scheduler Thread - 5"
30.09 00:28:16 [Server] INFO Set humanity points for CubedHost_Staff to 0
Also pasted here: http://paste.ubuntu.com/8464360/
The command does, in fact, set my points to whatever I've asked it to set it to and moves me to the appropriate rank, however, none of the commands that should execute when I move from Hero to survivor or Survivor to Bandit and vice versa seem to execute.
Here's a lot of info for you, I'm really hoping you all can help me out here:
I know the life of a Dev can be exceptionally busy, and I certainly know a bit more than the average Joe about how time consuming answering support requests can be! (trust me D:)
But whenever you do have the time to address this problem, I would very much appreciate your input and advice on this situation. Thanks so much!
@jokeroyaljoker
It seams that your players.txt file has become corrupt. Try renaming it and let the plugin generate a new players.txt, and see if that works, if so then you can try copying bits of the old file into the new one. Also it is recommended to use MySQL for stability in cases like this. Also note in the future that you should use pastebin to print info like file content or logs ;)
plz update 1.7.10... its error
[23:07:47 WARN]: Exception in thread "pool-3-thread-80" [23:07:47 WARN]: org.apache.commons.lang.UnhandledException: Plugin Humanity v2. 4 generated an exception while executing task 164182 at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: IO problem in fileToString at me.xADudex.Humanity.FileTools.read(FileTools.java:79) at me.xADudex.Humanity.ScoreManager$1.run(ScoreManager.java:483) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java :53) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:53) ... 3 more Caused by: java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at java.io.DataInputStream.readFully(Unknown Source) at me.xADudex.Humanity.FileTools.read(FileTools.java:76) ... 6 more
helpme
Hey does this need to be updated for 1.8? LOVE THIS IDEA FOE MONECRAFT BTW
@xGamingDudex
Why thank you sir :)
@Hmmcrunchy
have added it to the todo list ;)
hey this plugin is great :)
just wondering if you could pop a command in to add or remove humanity points so we can use denizen scripts etc to reduce or give extra humanity points
thanks :)
@Priqious
You should look into the "Commands" section of the plugin. Here you can run specific commands from the console both when a person reaches a new rank and when the player goes from an old rank to a new one. If you are using a permission plugin then it should support the ability to give permissions on command, or you could set the group for the player.
Hi, would you be able to add a feature where if a certain player reaches the Hero status he will be able to have access to a certain warp for example Hero shop? Then if a player had bandit humanity they can access the bandit shop? Just that would be awesome!
@KnightcraftRPGServer
Well it is really easy and straight forward but if you have no or very limited knowledge about java programing then I guess it just looks like a bunch of random lines of text :P
@xGamingDudex
Cheers. Im crap at reading the stack traces :)
@KnightcraftRPGServer
I see no errors indicating that the cause of the error is Humanity. I do see that Humanity is part of the stack trace (which is probably why you are posting this here, but it seams to have executed just fine). You can see that it was successfully executing code after the Humanity part. The errors are usually near the last part of the stack trace, where you can see that code from com.sk89q.commandbook.session.SessionComponent.onPlayerQuit and com.sk89q.util.yaml.YAMLProcessor.save was executed. Try contacting this developer in stead as it might be this which is causing the server to stop responding. Also are you sure that this is all of the stack trace, as it seams a bit odd to only have two threads on your server. Some of the stack trace also seams to have gone due to: 02.06 17:58:47 [Multicraft] Skipped 22 lines due to rate limit (30/s), this could be anything from garbage to vital information in tracing the source of the error. You should see if you could disable this until in case this happens again.
Hey this happens way too often and crashes my server. Starts at the bottom
@KnightcraftRPGServer
It is probably due to the /hSetPoints command not being compatible with mc versions older then 1.7.8, and Citizens is only supporting 1.7.4.
I can't do much about it as I'm only going to focus on making the plugin compatible with the newest build.
Guess you will just have to wait until Citizens update