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)
How you could use the data on your website: http:www.herobrine.de/viewpage.php?page_id=5
| Command | Function | Permission |
|---|---|---|
| /reset <playername> | Reset the playerfile | herohardcore.reset |
| /toplist | Show the 5 best players |
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!"
If you have any questions or bugs post it in the comments
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.