PvPTime
PvPTime for Bukkit
Lets you choose what in-game hours you want PvP enabled. Perhaps you want to give the players yet another reason to keep indoors during the night?
Features
- Configurable time when PvP is enabled and disabled
- Broadcasts when the PvP state changes
- Multi world support
- WorldGuard support (see below)
- Towny support (PvP is enabled when it’s in war time)
Permissions
- pvptime.* - All permissions below
- pvptime.override - If you want anybody to be able to deal damage even during daytime, let them have this permission
- pvptime.nopvp - If you want anybody to always be protected from PvP even in nighttime, let them have this permission
- pvptime.reload - Permission for /pvptime reload
- pvptime.info - Permission for /pvptime info
Extra Information
The plugin requires pvp=on in your server.properties.
If you need, there’s information about the plugin configuration here.
WorldGuard Support
- PvP Flag Allowed: PvP enabled in day and night time (/region flag REGION pvp allow)
- PvP Flag Cleared: PvP only enabled in night time (/region flag REGION pvp)
- PvP Flag Denied: PvP disabled in day and night time (/region flag REGION pvp deny)
Links
PvPTime is a plugin originally created by Erbros and continued/recoded by Guichaguri.
-
View User Profile
-
Send Message
Posted Oct 2, 2013Everthing seems to work fine now, except that i'm not able to PvP, while i have pvptime.override, override is enabled in the config and i'm Op, whereas others can PvP =/
-
View User Profile
-
Send Message
Posted Oct 1, 2013@Guichaguri
Ah well.. i'll test the new version soon and let you know if it works :)
And thanks! ;)
-
View User Profile
-
Send Message
Posted Sep 30, 2013@ThisUsernameIsMine
OMG! I forgot to fix it :P
Thanks, I will make a "Development Build" to fix that.
EDIT: Two IDIOT bugs, 2 minutes to fix, 14 letters wrote
Dev Build: http://www.sendspace.com/file/htszuk
-
View User Profile
-
Send Message
Posted Sep 30, 2013@Guichaguri
Love it! Will test the new build asap! :):) +1
edit: I love the sounds, but i noticed i could hear the PvP sounds of other worlds as well, so not only the one i'm in :o (we have 6 worlds in total with different day/night cycles)
Also, i don't seem to get the PvP notification when visiting another world, while changeWorldMsg are set to true
-
View User Profile
-
Send Message
Posted Sep 30, 2013Excellent work!
-
View User Profile
-
Send Message
Posted Sep 30, 2013Thank you for your support WorldGuard!!!!
I love this plugin! xD
-
View User Profile
-
Send Message
Posted Sep 29, 2013New update, thanks for @ThisUsernameIsMine for ideas.
http://dev.bukkit.org/bukkit-plugins/pvptime/files/
It is under approval. :)
-
View User Profile
-
Send Message
Posted Sep 19, 2013I'm kind of busy because I'm developing my own server, but tomorrow I'll develop a new update with a lot of new things. Sorry :(
-
View User Profile
-
Send Message
Posted Aug 30, 2013@Guichaguri
Can't wait! +1 (is it under approval as we speak? J/K! :D)
-
View User Profile
-
Send Message
Posted Aug 28, 2013@ThisUsernameIsMine
Will be added :)
-
View User Profile
-
Send Message
Posted Aug 24, 2013Please consider adding the following:
- a permission node to exempt players from PvP
- choosable PvP start/end sounds for announcements
- inform the player about the current PvP state when (s)he enters a world by portal/warp or teleport
(i 'stole' these ideas from the mod 'Night Attack')
Great plugin! +1 :)
-
View User Profile
-
Send Message
Posted Aug 23, 2013@CraftPlayBrasil
Awesome xD
@Lukethenuke
You're welcome!
-
View User Profile
-
Send Message
Posted Aug 21, 2013@Guichaguri
Thanks for releasing such a cool plugin. I use this on my server for making night time the only time for PvP making it very intense because of the monsters and lower visibility.
-
View User Profile
-
Send Message
Posted Aug 20, 2013Thank you, I will launch my server tomorrow! And this plugin is one of the main ^ ^
-
View User Profile
-
Send Message
Posted Aug 19, 2013@artems86 @CraftPlayBrasil
All bugs are solved, the new update is in approval. http://dev.bukkit.org/bukkit-plugins/pvptime/files/
-
View User Profile
-
Send Message
Posted Aug 18, 20132013-08-18 21:58:57 [SEVERE] Could not pass event EntityDamageByEntityEvent to PvPTime v0.1.17 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:363) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:77) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:398) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:427) at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:929) at net.minecraft.entity.player.EntityPlayer.func_70097_a(EntityPlayer.java:1229) at net.minecraft.entity.player.EntityPlayerMP.func_70097_a(EntityPlayerMP.java:598) at net.minecraft.entity.player.EntityPlayer.func_71059_n(EntityPlayer.java:1534) at net.minecraft.network.NetServerHandler.func_72507_a(NetServerHandler.java:1610) at net.minecraft.network.packet.Packet7UseEntity.func_73279_a(Packet7UseEntity.java:57) at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:464) at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:230) at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54) at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(DedicatedServerListenThread.java:34) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:872) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:318) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:741) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:625) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) Caused by: java.lang.ClassCastException: com.sk89q.worldguard.protection.flags.StateFlag$State cannot be cast to java.lang.Boolean at net.erbros.PvPTime.DamageListener.onEntityDamage(Unknown Source) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361) ... 21 more
-
View User Profile
-
Send Message
Posted Aug 16, 2013@Guichaguri
2013-08-15 20:10:43 [SEVERE] Could not pass event EntityDamageByEntityEvent to PvPTime v0.1.17 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:93) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:381) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:406) at net.minecraft.server.v1_6_R2.EntityLiving.damageEntity(EntityLiving.java:636) at net.minecraft.server.v1_6_R2.EntityHuman.damageEntity(EntityHuman.java:714) at net.minecraft.server.v1_6_R2.EntityPlayer.damageEntity(EntityPlayer.java:378) at net.minecraft.server.v1_6_R2.EntityHuman.attack(EntityHuman.java:884) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1121) at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.ClassCastException: com.sk89q.worldguard.protection.flags.StateFlag$State cannot be cast to java.lang.Boolean at net.erbros.PvPTime.DamageListener.onEntityDamage(Unknown Source) at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 21 more
-
View User Profile
-
Send Message
Posted Aug 12, 2013@Guichaguri
AntiFirePvP was never was set to true, nor its "smart" option. The whole thing was on false for all four of my worlds.
-
View User Profile
-
Send Message
Posted Aug 12, 2013@Swords761
Yeah, a friend reported me about this crash, please, disable "smart" option of AntiFirePvP, please, tell me if still crashing.
-
View User Profile
-
Send Message
Posted Aug 11, 2013Your new version of PvPTime (v0.1.17) is spamming my console with this error:
[SEVERE] Could not pass event PotionSplashEvent to PvPTime v0.1.17
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:47)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPotionSplashEvent(CraftEventFactory.java:307)
at net.minecraft.server.v1_6_R2.EntityPotion.a(EntityPotion.java:93)
at net.minecraft.server.v1_6_R2.EntityProjectile.l_(EntityProjectile.java:156)
at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1492)
at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1467)
at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1336)
at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:517)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:571)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R2.entity.CraftThrownPotion cannot be cast to org.bukkit.entity.Player
at net.erbros.PvPTime.DamageListener.onPotionSplash(Unknown Source)
at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 16 more
I'm also getting this one with WorldGuard:
[SEVERE] Could not pass event EntityDamageByEntityEvent to PvPTime v0.1.17
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:47)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:94)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:398)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:423)
at net.minecraft.server.v1_6_R2.EntityLiving.damageEntity(EntityLiving.java:643)
at net.minecraft.server.v1_6_R2.EntityHuman.damageEntity(EntityHuman.java:715)
at net.minecraft.server.v1_6_R2.EntityPlayer.damageEntity(EntityPlayer.java:394)
at net.minecraft.server.v1_6_R2.EntityHuman.attack(EntityHuman.java:885)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1148)
at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:125)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:592)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ClassCastException: com.sk89q.worldguard.protection.flags.StateFlag$State cannot be cast to java.lang.Boolean
at net.erbros.PvPTime.DamageListener.onEntityDamage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 22 more
Oh, and also this one:
[SEVERE] Could not pass event PlayerInteractEvent to PvPTime v0.1.17
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:47)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:207)
at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:374)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:628)
at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:125)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:592)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ClassCastException: com.sk89q.worldguard.protection.flags.StateFlag$State cannot be cast to java.lang.Boolean
at net.erbros.PvPTime.PlayerEventListener.PlayerInteractEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 17 more