KillCounter
KillCounter 2.0 by iToobi
Current Version: 2.0.1
Description
- This Plugin is the perfect method to count and store kills when playing the Survivalgames or any other pvp-based-maps. The Players can read out their score and the scores of other Players. Additionally, Players can see what the current highscore is, and which Player holds it. A Reward-System can give Players rewards if the Player reaches a specified amount of kills. The Players are able to see the scoreboard and their position in the scoreboard. (The Plugin also counts Bow-Kills).
- Version 2.0.0 is a complete rewrite of the old plugin, including an API, faster algorithms and more efficient data storage.
Features
- Reward-System (see "Rewards system" for further information)
- Let the Player check its own current score (kills,deaths,KDR ...)
- Let the Player check other Player's current score
- Ingame-Admin-Command to reset kills to 0
- Let the Player know the scoreboard
- Let the Player know its position in the scoreboard
Installation
- Copy the KillCounter.jar in your plugins folder
- Restart your Server
- The Plugin generates a Folder in /plugins/KillCounter
- IMPORTANT: when updating from 1.4.1 be sure do delete the complete KillCounter folder before going on. When updating in general, delete your config-file and let it generate a new one. You can copy&paste your custom nodes in there.
General Informations
- On the first run or even if the files don't exist, the plugin will create the config and data folder
- Files for new players are only added if neccessary
Commands
- /kc </> : shows version and license info
- /kc reset <name> : resets stats of a player
- /kc resetall : resets all stats
- /score [name] : shows your own stats or stats of given player
- /top [amount] : shows top players
- /top me : shows your position in the scoreboard
Permissions
- kc.admin : gives access to all admin commands
- kc.see.self : gives access to own statistics
- kc.see.other : gives access to statistics of everyone
Rewards system
- You can reward players for their kills with items. If you set REWARD_KILLS in the config to 5, players will get the reward every time they reach an amount of kills that (KILLS mod REWARD_KILLS) = 0, that means for example with 5, 10, 15, 20, 25 or 12995 kills.
- Set REWARD_KILLS = to 0 or -1 to disable the rewards system
Config
- DEBUG : enables debug-mode
- RANKING_COMPUTE_DELAY : delay for recomputing the scoreboard order (very resource consuming) in milliseconds, DO NOT set too low
- SYNC_SCHEDULER : sets if schedulers for recomputing should run synced, set to false for better performance, but this might cause crashs
- DEFAULT_TOP_AMOUNT : default amount of players showed when doing "/top"
- RESET_ON_DEATH : set to true if you want to reset the stats of a player automaticly when he dies
- HEADER_MSG : header of the stats chat representation
- ENTRY_MSG : an entry of the stats chat representation
- TOP_ENTRY : entry of the scoreboard chat representation
- TOP_HEADER : header of the scoreboard chat representation
- REWARD_MSG : message sent to player when receiving reward
- ANNOUNCE_ON_KILL : set to true if you want no let the player know its current kills after every kill
- ANNOUNCE_MSG : message sent to player whenever he kills somebody
- REWARD_KILLS : kills for giving reward, "5" means player get rewards when reaching 5;10;15;20;25 ... kills
- REWARD_ITEMS : itemslist for rewards, format: <id>.<amount>,<id2>.<amount2> ...
API
- You can access the statistics from within another plugin easily. Just include KillCounter to your buildpath and add it as dependency. To access a users Stats-Entry do either Stats.get("playername") or Stats.get(playerobj). These objects hold all neccessary methods for viewing and editing the saved stats-values.
Download
- You can find a download-link for the latest version on the right site of this page.
- Versions +1.4 are tested for craftbukkit-1.2.5-R2.0
- Versions +2.0 are tested for craftbukkit-1.6.4-R0.1
- All versions are tested with PermissionsEx-Plugin
Known Bugs
- Currently none
If you enjoy the plugin, spread the word or send me a little donation.
If you know other Bugs or have a request for a new function feel free to contact me by using the comment-function. Thanks.
Hey iToobi, my server is under heavy maintenance and is expected to be in a few more hours. I haven't got a chance to test the new release on the server yet, but I managed to test it on my own test server and it worked really well :)
Can you add a reward mode 3, where for each 5(or another positive integer) kills, people will receive a reward?
<<reply 721702="">>
added to todo
Very cool! Definitely going to use this! One suggestion though: Could you add the option to have it only count a pvp-kill on a player if the player hasn't killed that player in the last 12 hours?
<<reply 721148="">>
Try the new version.
I cant seem to get the plugin working the way i want. I've got SurvivalGames plugin http://dev.bukkit.org/server-mods/survival-games/
and i've got arenas in different worlds, when i kill a player in this arena, using this plugin, the kill does not get stored. But when i kill someone in the original survival world, it does get stored.
Any way to get past this?
<<reply 720015="">>
Added request to ToDo
How about an alias, /kc maybe?
@iToobi
Yes, I would love to test the beta build for you. I'm running a server on linux-based system, you can join and test the plugin yourself too.
The server ip is zone13.servegames.com:25584. I will need your IGN to whitelist you tho :)
Hey nhoclesnar,
the reward-System was just experimental, but i can try to add economy support.(and may multiple items for rewards).
i need to recode parts of the Linux-fixed version cause it throws errors sometimes. you could help me bugfixing by testing my 1.4PRE-builds (pm me for download link).
thanks for using killcounter.
Hey I like this plugin very much. But I wonder how can I reward money (economy plugin), and how can I give multiple items as a reward?
EDIT: please release the fix for linux quickly. I cannot use this in my host, I'm so anxious.
I just wanted to comment and say that iToobi has helped me offline with my problems with his plugin and now it is working flawlessly! Awesome work man! I appreciate the help.
Yes. I made an empty file called kills.properties . But it doesn't seem to be able to open it or write to it. I get this error during a restart or start or after a pvp kill.
2012-05-12 05:20:54 [INFO] [KillCounter] failed to read Kills 2012-05-12 05:20:54 [INFO] [KillCounter] failed to read Kills
I also tried to have it generate a new properties file again and it didn't create. When i try to do that i make sure there isn't an existing kills.x file. Any help would be great. Thanks.
@Jackalmen
Do you have the ability do modify or delete files in you directories ?
Delete all files which start with "kills.x".
Manually create a new file called kills.properties.
If you tell me the ip of your server, I may can help you.
The kills.properties file doesn't generate for me. My server is being hosted and i cannot chmod my directories. They are set to 770. Is it possible to create the file manually? I really need a pvp scoreboard for my server as I've tried using 4 other scoreboard plugins and they glitch out or don't register bow kills. Any help would be awesome! Thx!
@hGabbeh
Yeah, I also have noticed that. How to fix :
cd in /plugins/killcounter delete kills.properties delete ANY files which start with "kills" (there should be no more file)
for linux-os: chmod 777 the whole "plugins" folder
restart/reload the server
It should generate a new kills.properties.
I got a bug for you.
and this (bear in mind that the top is the last message and the bottom is the first)
Some of my players like my idea, but overwhelmingly they seem to entertain the idea of a real, physical Killcount scoreboard. This is probably asking quite a lot out of a developer, but what they seem to want is for me to make this plugin more tangible. A sign!
So, say i put <killer 1> and <score 1> into the scoreboard. It would output the player at rank 1 and rank 1 player's score.
Obviously this is a lot to ask. But it would be a bit flashier and perhaps less difficult than your other request.
@iwbtg231
Your request was accepted. How the command should be ?
Im starting working on you request as soon as possible.
Does your server have deathban or ban on death? You need this plugin. Any player brave enough to come out of his hidey-hole and PvP deserves at least a place on a scoreboard. The two plugins go hand-in-hand.
Request: A top x scoreboard, with a config option to define x.
Ps. I promise to give you and everyone else my IP as soon as online-mode= true ^^
@iwbtg231
I'll be very glad if you can give me your server IP 'cause I want see my plugin in action.