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.
Could you add a feature to where they can re-enable their pvptimer for a short period of time (custom in the config) whenever they wanted with a cooldown of like a day or something and have the permission for it aswell.
@lemon42
Well ok that's great hope to see an update soon ^_^
For the NPC plugin the link is: http://dev.bukkit.org/server-mods/dragonantipvpleaver/?page=4 This plugins has no errors it is just a small conflict between yours and his about the NPC.
@deaddude22
For the mcMMO issue, I'm working on it, as you can see it's on my planned features list. I've been looking into it and I think it's possible, so expect a fix for that soon.
For the other issue however it is not my plugin causing it. To my understanding, the plugin would spawn an NPC. Problem is that these NPCs, even though they may be the same player to your eyes are different objects in code, which make it impossible for me to track down what NPC belongs to which player. There could be a way, maybe, but it would conflict with NPC plugins such as Citizens. Sorry, can't do much about that. If you want, I can test it further if you give me the plugin name to see if anything can be done about it, but I highly doubt it.
@lemon42
Well i would like to report a few bugs found with this plugin to fix also. With mcMMO players can use abilities to kill players through their pvptimer protection (serated strikes etc.). Also i would like to report that with anti pvplogging plugins the players will spawn an NPC and the player will be able to attack that NPC even if that player was under the pvptimer protection.
@deaddude22
Well that's true since they won't be able to gather any materials. Maybe I could try to disallow them to pickup items only if they come from other players, but I don't know if that would be possible. Will see how it goes. However, I will add that feature as some people might need it for other reasons. It will be fully configurable though so don't worry if you don't want it! :)
@lemon42
Well that won't help because then they aren't really able to do anything in the time being until they remove it rendering this plugin useless unless you can add something that when a player drops an item or dies and drops it they aren't able to pick it up but then again when they are playing with a friend that can be a problem too so yea...
@laserlag
I can add a feature to prevent people from picking up items when they are protected if you want. Will do this in the next update. Thanks!
Great plugin. The only issue we have is that some new people who are protected will sit and vulture loot from people fighting near Spawn. Any suggestions on how to work around this?
@Erik058
Try using the debug and report any console errors as it is not a plugin problem but might be something in your configuration or you just need to reload it. So delete your current configuration and reload the plugin so it generates the new one.
@HitmanPL47
Yeah, you guessed that right. I should probably add that to the configuration page. Thanks!
@InvisiCraftOfficial
That's weird... are you sure you are using the latest build? You are the only person who it is happening to. Hope we can find a fix. Are you sure it's my plugin? Have you tested it? It might be another one of your plugins conflicting.
@Erik058
That's odd. What is your current configuration, and do you get any warnings or errors in the console? Thanks for the report, will look into it, not sure what could possibly be causing that though. Are you sure it's not just that 6 seconds might be a little too small of a delay? I mean, they probably won't have time to do anything in such short timeframe.
@deaddude22
Still having the same issue =(
@Erik058
@InvisiCraftOfficial
Use the new 1.0c Build. http://dev.bukkit.org/server-mods/pvptimer/files/9-pvp-timer-1-0c/
using PvPTimer 1.0b. The login timer which is set at 6 seconds does nothing. After someone dies, they can get attacked right off the bat.
This does NOT work correctly! As soon as I install this plugin people get kicked randomly with the message: 'Disconnected By Server'
Please fix. Thanks
Hey nice update. I can't seem to find any documentation on how the world.txt syntax is supposed to look like. Is it just a world name per line?
@InvisiCraftOfficial
Try deleting your configuration, and tell me if it still doesn't work. That's odd because nobody is getting such error till now. It's working fine on our server... what operating system? Java version? CraftBukkit build? Do you have a different /plugins folder?
Also, please try it on a new blank server without any plugins and see if you still get the error, it could be another plugin conflicting, though I don't think it is very likely since it seems to be config related. Even so, please try it on a new blank server, thanks!
@cuddyier
Will do for next release. Currently trying to make sure there are no more bugs before I finally start working on the next milestone.
Can you make it so that for login protection, it only activates 20 minutes between logins? E.g. I login to the server and get 30 seconds login protection but if I logout and back in I wont receive the protection again until 20 minutes has passed therefore there should be no abuse of login protection like there currently can be.
3.12 05:53:41 [Server] INFO [CapsBlock] Enabling CapsBlock v0.6.2 23.12 05:53:41 [Server] INFO [SilkSpawners] Spout not found. Disabling Spout features. 23.12 05:53:41 [Server] INFO [SilkSpawners] Enabling SilkSpawners v3.0_BETA-SNAPSHOT 23.12 05:53:41 [Server] INFO at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) 23.12 05:53:41 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) 23.12 05:53:41 [Server] INFO at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149) 23.12 05:53:41 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:259) 23.12 05:53:41 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:300) 23.12 05:53:41 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:321) 23.12 05:53:41 [Server] INFO at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:260) 23.12 05:53:41 [Server] INFO at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:278) 23.12 05:53:41 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 23.12 05:53:41 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 23.12 05:53:41 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 23.12 05:53:41 [Server] INFO at lemon42.PvPTimer.PvPTimer.onEnable(PvPTimer.java:45) 23.12 05:53:41 [Server] INFO at lemon42.PvPTimer.Config.load(Config.java:115) 23.12 05:53:41 [Server] INFO at lemon42.PvPTimer.Config.writeConfig(Config.java:171) 23.12 05:53:41 [Server] INFO at java.util.ArrayList.get(ArrayList.java:382) 23.12 05:53:41 [Server] INFO at java.util.ArrayList.rangeCheck(ArrayList.java:604) 23.12 05:53:41 [Server] INFO java.lang.IndexOutOfBoundsException: Index: 7, Size: 7 23.12 05:53:41 [Server] SEVERE Error occurred while enabling PvPTimer v1.0d (Is it up to date?)
@InvisiCraftOfficial
Try this new develpopment build and see if you still get the error? If not, then please attach your configuration, thanks!
Getting this error a lot - even reset the config file... Any suggestions??
23.12 02:16:04 [Server] INFO list 23.12 02:16:00 [Server] INFO ... 14 more 23.12 02:16:00 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) 23.12 02:16:00 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:601) 23.12 02:16:00 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23.12 02:16:00 [Server] INFO at sun.reflect.GeneratedMethodAccessor623.invoke(Unknown Source) 23.12 02:16:00 [Server] INFO at lemon42.PvPTimer.PvPListener.onJoin(PvPListener.java:82) 23.12 02:16:00 [Server] INFO at lemon42.PvPTimer.Config.getString(Config.java:188) 23.12 02:16:00 [Server] INFO Caused by: java.lang.NullPointerException 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:29) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.DedicatedServerConnectionThread.a(DedicatedServerConnectionThread.java:44) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.PendingConnection.c(PendingConnection.java:45) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.PendingConnection.d(PendingConnection.java:130) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.PlayerList.a(PlayerList.java:95) 23.12 02:16:00 [Server] INFO at net.minecraft.server.v1_4_6.PlayerList.c(PlayerList.java:156) 23.12 02:16:00 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 23.12 02:16:00 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 23.12 02:16:00 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 23.12 02:16:00 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 23.12 02:16:00 [Server] INFO org.bukkit.event.EventException 23.12 02:16:00 [Server] SEVERE Could not pass event PlayerJoinEvent to PvPTimer v1.0c 23.12 02:16:00 [Server] INFO kalbiribs[/71.231.254.96:51069] logged in with entity id 911120 at ([world] 745.9805143947262, 71.0, -206.30249835836787)