HeroHardCore
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
@Squall28600
I wanted to do that in the first place, I could add this feature but i have to add a new row in the table where I store the bantime.
I wasn't able to figure out how to use the tempban which seems to be implemented in minecraft but not usable in bukkit, as you can see in the banned players file of bukkit.
Bukkit only provides player.setBanned(true) I think.
I'm working on a different plugin atm but I will add a tempban feature ASAP.
Kick and ban player on death
tempban is possible? exemple tempban 1 d on death?
@Wedhro
Thank you :)
@Wedhro
Now we have : EN / DE / FR / IT
AWESOME :D
Hi, I localized plugin's messages in Italian: http://pastebin.com/yCxtsp6j
@utybo
Thanks! It will be added in the next update :)
And another thanks for joining the server :D
Ok I will translate it as soon as possible :)
EDIT : The new config.yml is here
@utybo
that would be great :)
I can translate this plugin in French if you want :)
I just saw a stupid mistake...
The secondChance string of course have to be "be more careful this time" and not "don't be careful" -.-
I'll upload a MySQL Version today with the To-Do features implemented :)