NoCombatQuit
NoCombatQuit
Are you running a PvP server? This plugin is a must have! Stop players from combat logging when they are low on hearts.
Features
- Block combat logging
- Customize messages
- Customize combat time
- Custom command on combat log
- No enderpearls while in combat
- Disable certain commands while in combat
Installation
Just drag n' drop NoCombatQuit.jar into your plugins folder, and restart the server. There is a config file, which can be used to change messages, but the plugin will run just fine without any changes.
Configuration
Configuration is optional, as it will work without any changes, but it is recommended that you modify the config to suit your needs. Note: You may use color codes in the config, by typing &4 for red, etc.
- prefix: Shown infront of all plugin messages.
- message-ontag: Shown when you hit someone, or someone hits you.
- message-onlog: Shown when someone combat logs. {%p} is replaced with the players name.
- message-onsafe: Shown when the player is no longer in combat.
- message-incombat: Shown when the player is in combat and types /check.
- message-notincombat: Shown when the player is not in combat and types /check.
- message-nocommand: Shown when the player uses a disallowed command.
- message-noenderpearl: Shown when a player enderpearls while in combat.
- command: Command to execute when player combat logs (%killplayer% will kill the player, and %player% will be replaced with the players name)
- blocked-cmds: A list of commands that can't be executed while in combat.
- allowEnderpearls: true - allow enderpearls while in combat. false - stop enderpearls while in combat.
- monster_tag: true - toggles whether monsters hitting player will put them in combat.
- time: How long players remain in combat.
Permissions
- ncq.check | Allows player to use /ncq | Default: Everyone
Bugs
- None known
Commands
- /ncq - Checks whether the player is in combat.
Showcase
http://www.youtube.com/watch?v=6j03fklGeTs
Video Tutorial on the Plugin (Portuguese)
https://www.youtube.com/watch?v=HMn9nCfBnPA
Credits: (AbsintoJ/NoCombatQuit)
It works with 1.6.2?
@FlOppythp
Fixed.
@happyharm
Forgot to add a check if entity taking damage was a player. Will fix now. I will also update the config.
Again a error:
08:03:48 [SEVERE] Could not pass event EntityDamageByEntityEvent to NoCombatQuit v1.1 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:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callEvent(CraftEventFactory.java:94) at org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:398) at org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:423) at net.minecraft.server.v1_6_R3.EntityLiving.damageEntity(EntityLiving.java:644) at net.minecraft.server.v1_6_R3.EntityMonster.damageEntity(EntityMonster.java:39) at net.minecraft.server.v1_6_R3.EntityZombie.damageEntity(EntityZombie.java:127) at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:890) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158) at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(Packet7UseEntity.java:25) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:237) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:131) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:604) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:493) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftZombie cannot be cast to org.bukkit.entity.Player at com.lightniinja.ncq.PlayerEvents.onPlayerDamage(PlayerEvents.java:38) at sun.reflect.GeneratedMethodAccessor436.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 22 more
This happens if someone is hit by a zombie or other things. Is this a bug from the new update or is it normally?
Be careful with that config. You forget to put standard after message- noenderpearl (or something like that) the '
It looks like:
Message-noenderpearl: 'You can't use enderpearls in a combat
But that ' must behind it like this:
Message-noenderpearl: 'You can't use enderpearls in a combat'
This gave me on the first start a big error on the console :). But with this you can solve it.
@LiLxKenny
I'm waiting for the new version to be approved, it changes the plugin so it won't tag players while they are in a safe zone or no-pvp zone.
I have a factions server, Is there a way to disable this in safezones? Also , if possible can you add the option to disable using enderpearls while tagged? Thanks so much. I love the plugin!
@ria80
Added! Make sure to regenerate your config by deleting it before updating!
@DerekZil
Will fix this right away. Wasn't aware it was happening.
@FlOppythp
Sure, I'll make it so monsters tag players too.
Hi,
can you add possibility to block command in combat example :/tpyes and other in config please ?
thanks
@DerekZil Sounds like a good idea
Can you make the message not show if you are in a no pvp zone?
Make it so you have to do damage for it to display.
Going to download now seems like a simple and helpful plugin to have :D