Plugin Name
This plugin provides a simple hardcore function (kick&ban on death) and shows the player his playtime on kick. It's my first plugin and I wrote this in the last few days for my server herobrine.de, there are a few hardcore plugins on BukkitDev but they are packed with lot of functions which I don't need. (We call it "Schnickschnack" in germany :D)
Features
- Count playtime of players
- Kick and ban player on death (optional)
- Reset playerdata
- Show the top 5 players
- MySQL Support
- Supported languages: English, German, French, Itialian http://dev.bukkit.org/server-mods/herohardcore/pages/languages/
How you could use the data on your website: http:www.herobrine.de/viewpage.php?page_id=5
Commands and Permissions
| Command | Function | Permission |
|---|---|---|
| /reset <playername> | Reset the playerfile | herohardcore.reset |
| /toplist | Show the 5 best players |
Configuration
language: en //Intervall how often playertime should be saved in the database saveIntervallInSeconds: 10 //ban on death? banOnDeath: true //give player a second chance if he dies before secondchancetime secondChance: true //timelimit in seconds in which the player is granted a second chance secondChanceTime: 120 //selfexplaining mysql: host: changeMe port: 3306 database: changeMe tablename: changeMe username: changeMe password: changeMe en: day: "day" days: "days" hour: "hour" hours: "hours" minute: "minute" minutes: "minutes" second: "second" seconds: "seconds" playerDies: "You died :(" luck: "Good luck for the next try!" playerNotOnServer: "Player wasn't on the server!" pleaseConfirm: "Please confirm reset of Player " withresetConfirm: "with /reset confirm " confirmCodeWrong: "confirmcode wrong, please try again. " playTime: "Your playtime: " noPermission: "You don't have the permission to do that!" secondChance: "You got a second Chance, be careful this time!"
Support
If you have any questions or bugs post it in the comments
Source Code
If you found parts in the code you would write in a different way, please tell me. It's the best way to learn from the experiences of others.
To-Do
- Database support - done
- Highscorelist - done
- Maybe a second chance if the playtime was under a certain amount of seconds/minutes - done
- Different spawn locations to prevent spawnkilling - done