PvPTimer
PvPTimer
Don't get join-killed ever again!
This is my second public Bukkit plugin. Enjoy!
Are you tired of those player-killers who keep tracking down the new members on your server? Well, there is a solution! PvPTimer will protect players from PvP for a set amount of time, and during that time will be able to build and discover the server, without worrying about those pesky player-killers! :)
Plugin suggested by Highneon from the awesome KingsOfMinecraft forum. Thanks to him! :)
Download and other links
I am aware of the issues present. If PvPTimer 1.3 does not work for you, please downgrade to 1.2, this should fix your issues till I manage to issue a new build. Thanks everyone for being so patient!
Stable release: PvPTimer 1.3
Additional languages
Configuration help
Command help
Source code on GitHub
Bukkit Forums thread
Plugin statistics
Features
- New players get a cooldown of a configurable amount of time where they will be immune to PvP, but will not be able to hit anyone.
- Lots of other protections, too!
- Players can disable their protection at any time!
- Admin commands!
- Easy configuration!
- Multilanguage support! Customize messages to will!
- A lot more!
Planned features
- Prevent people from using McMMO special strikes. Not sure if this will be possible. Looking into it.
- Remove protections on hit (with warnings).
- Official documented API.
- Permissions to disable automatic protection (join, etc.)
- All accepted and started tickets, hopefully.
Submitting feature requests/bug reports
If you want to submit a feature request or a bug report:
- When posting feature requests, make sure the request has not been posted by another user. Check the ticket tracker before doing anything!
- If you would like to report a bug, please be as clear as possible: tickets which aren't clear enough will be marked as Invalid or Waiting.
- If you have a crash log, please use a pasting service to post it, such as Pastebin, Pastie, or BukkitDev's own paste service.
- If you submit a log, please add information. Tickets showing logs with a description such as "It does not work" will be rejected. When does it happen? Did it happen once or is it recurrent?
Support
I speak English! If you need help, post your question in the comments, or send me an e-mail!
Je suis Français! Si vous avez besoin d'aide, envoyez-moi un e-mail!
Hablo Español! Si necesita ayuda, mandeme un mail!
Changelog
Version 1.3
- You can now disable the periodic save
- Added join message delay
- Added enderpearl trigger option
- Added non player death trigger option
- Added PvPTimer.remove permission (to allow/forbid removing player's own protection)
- Added protection timeouts
- Fixed excluded worlds
- Fixed enderchests and containers
- Fixed animation issue with trapped chests
- Fixed updater
- Fixed ConcurrentModificationException errors
- Fixed mob protection
- Fixed potential memory leak while saving configuration
Version 1.2
- Added updater
- Language files now support new lines with \n
- Configuration will now parse raw numbers as seconds
- Fixed container configuration
- Fixed teleporting to different worlds causing exceptions
- Fixed migration issue
- Fixed first join protection
- Fixed group issues
For the full changelog, please look at the latest file.
@lemon42
Whenever I host an UltraHardcore match there is about 15-20 mins setup time and so when we actually begin the match it's really hard to time it correctly so that the PVPtimer expires after the first day for every player. I know that the plugin was not meant for this but a command to reset everyones timer when we begin the match would be perfect! :)
@harryjamesuk
Since this is for NEW people, how are groups affecting this in any way? I don't see the point of adding groups, because when you join you are always one default group. Permissions will get added in 1.0 for commands however ;)
@Blaikie
A reset command, as in? Giving them their protection back if it expired? This is possible.
@cet0
The way the plugin works right now does not allow me to code this. I might change the way the plugin works, but right now it will stay this way :)
Hi all
I'm an answer :) Its possible to disable pvp timer effect in a specific world, and restore it when the player return to main world.
Thanks :)
I would love a reset command, trying to use this for UHC
About there being no permissions, me, personally, I'd prefer permissions.
It'd be cool to have things like
pvptimer.time.30
> For 30 seconds invincible. pvptimer.time.60> For 60 seconds invincible.This would be good to set a group like a V.I.P group to have a longer invincibility time.
@re4397
I'm not sure if I understood you there, but if you meant adding the possibility to configure when to be able to PvP, that's possible. I'm not sure if it would fit my plugin though, as my plugin is meant to protect new players, although I might add it. Thanks for the suggestion :)
I suggest you put a pvp timer, pvp only night.
@ShakyTom
Thanks for helping out! :)
Glad that your server's lag wasn't caused by my plugin, although I was almost sure it wouldn't.
@lemon42
The fix works great, thanks!
Turns out it wasn't the cause of my lag anyway, someone on the same node as me had configured their server to backup every minute to a zip folder :/
Alright!
Version 0.9 is out! It fixes the bugs you guys mentioned plus some other things. I will now be working on version 1.0 which will include all the requested features that I can add. Thanks for your support! :)
@ShakyTom
I am running it on a big server (about 40 players a day) and it does not cause lag. Could you check if removing it stops lag? If it lags too much one solution is to increase the check interval in the config (the
checkEvery
node), which will cause the plugin to check for expirations less often. I might change the way it works, but yeah.And about the fix, yes. I'll release it in the next hour :)
@lemon42
Have you managed to get a fix sorted yet?
Absolutely love this plugin but I have a feeling it could be the cause of my servers lag.
@lemon42
I appreciate the fix. This plugin is exactly what we needed on our server. Only thing is, we are are not a small server ;)
@Assertive
Yeah I have found the error and fixing it. It shouldn't be too critical on small servers, but might cause problems on bigger servers. Will address a patch later today, if I get time. Thanks to everyone for reporting issues! :)
@lemon42
Yep, same here:
2012-07-16 12:56:52 [SEVERE] java.util.ConcurrentModificationException 2012-07-16 12:56:52 [SEVERE] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806) 2012-07-16 12:56:52 [SEVERE] at java.util.HashMap$KeyIterator.next(HashMap.java:841) 2012-07-16 12:56:52 [SEVERE] at lemon42.PvPTimer.CheckTask.run(CheckTask.java:14) 2012-07-16 12:56:52 [SEVERE] at java.util.TimerThread.mainLoop(Timer.java:555) 2012-07-16 12:56:52 [SEVERE] at java.util.TimerThread.run(Timer.java:505)
Thanks for fixing!
@levisn1
This is an error that happens occasionally. Will try to fix it in the next update. Thanks for reporting it :)
@Jknies
Soon :)
great plugin! looking forward to the next release with some new features :D
07:13:11 [SCHWERWIEGEND] Exception in thread "Timer-0" 07:13:11 [SCHWERWIEGEND] java.util.ConcurrentModificationException 07:13:11 [SCHWERWIEGEND] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:839) 07:13:11 [SCHWERWIEGEND] at java.util.HashMap$KeyIterator.next(HashMap.java:874) 07:13:11 [SCHWERWIEGEND] at lemon42.PvPTimer.CheckTask.run(CheckTask.java:14) 07:13:11 [SCHWERWIEGEND] at java.util.TimerThread.mainLoop(Unknown Source) 07:13:11 [SCHWERWIEGEND] at java.util.TimerThread.run(Unknown Source)
i have this..craft bukkit raccomended build 4
Haha I posted the comment then facepalmed right after I posted it because I remembered the ticket system. :P very excited for that feature! Will be following this!
@nomadcraft
Working on it. Please use the ticket you posted for further reference :P