Code Monkey home page Code Monkey logo

combattagplus's Introduction

CombatTagPlus

CombatTagPlus is the last plugin you'll ever need to stop those dirty combat loggers!

Supports

  • CraftBukkit & Spigot 1.7.9
  • CraftBukkit & Spigot 1.7.10
  • Spigot 1.7.10 / 1.8 Protocol Patch
  • CraftBukkit & Spigot 1.8.0
  • CraftBukkit & Spigot 1.8.3
  • CraftBukkit & Spigot 1.8.4 / 1.8.5

Features

  • Spawn a NPC when a player logs off in combat
  • Play an effect when NPC spawns
  • Force NPC to always spawn when the player logs off, even out of combat
  • Can instantly kill player when they log off in combat
  • Safe Logout that optionally lets tagged player wait a timer without moving to safely log off
  • Disallow flying while player is in combat
  • Disallow block editing while player is in combat
  • Disallow enderpearls while player is in combat
  • Disallow teleporting while player is in combat
  • Broadcast a PVP kill/death message
  • Disable combat tagging for specific worlds
  • Deny specific commands while player is in combat
  • Disallow running back to safety while in combat (can also render a forcefield)
  • Supports WorldGuard PVP deny flag (WorldGuard 5.x and 6.x both supported)
  • Supports Factions PVP flag
    • Most mainstream Faction builds are supported:
    • Factions 2.7 (MassiveCore 2.7)
    • Factions 2.6 (MassiveCore 7.4)
    • FactionsUUID 1.6 (and HCFactions) by @drtshock
    • FactionsUUID 1.8 by @externo6
  • Supports Towny PVP permission
  • Works with BarAPI to show a boss bar counting down with the player's remaining combat timer
    • These custom BarAPI builds by @vemacs are more compatible than the official ones:
    • Spigot 1.8.0: Download
    • Spigot 1.7.10 / 1.8 Protocol Patch: Download

Development Builds

You can acquire development builds of CombatTagPlus from the Minelink Network CI server.

Installation

  1. Obtain the latest version of CombatTagPlus from the build server.
  2. Copy or move CombatTagPlus.jar into your server's plugins folder.
  3. Optionally obtain and install a compatible version of BarAPI (see the Features section above for downloads)
  4. Start the server. This creates a new file plugins/CombatTagPlus/config.yml
  5. Edit the newly created configuration file with desired behavior.
  6. If you made any changes, run the command /ctreload from console or as an operator.

Permissions

Permission Description Default
ctplus.reload Reload CombatTagPlus configuration operator
ctplus.bypass.tag Bypass combat tagging operator
ctplus.bypass.command Bypass command restrictions in combat operator
ctplus.bypass.blockedit Bypass block edit restrictions in combat operator
ctplus.bypass.enderpearl Bypass enderpearl restrictions in combat operator
ctplus.bypass.flying Bypass flying restriction in combat operator
ctplus.bypass.teleport Bypass teleportation restriction in combat operator
ctplus.check Check remaining combat timer everyone
ctplus.logout Initiate a safe logout everyone
ctplus.notify.kill Receive kill/death message broadcast everyone

Contributing

  • 4-space indentation
  • UNIX line endings
  • Braces on the same line

Thanks :)

License

CombatTagPlus is licensed to you freely under the terms of the LGPL license.

Special Thanks To:

YourKit-Logo

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

combattagplus's People

Contributors

agazed avatar ams2990 avatar badbones69 avatar byteflux avatar cheatsupport avatar craigege avatar drtshock avatar programmerdan avatar rourke750 avatar samut3 avatar spirit55555 avatar sudzzy avatar techcable avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

combattagplus's Issues

NPCs don't despawn

Please help, NPCs don't despawn.

2015-06-25_13 24 12

Here is my plugin list! WorldGuard, WorldEdit, WorldBorder, WildSkript, WhatIsIt, Votifier, Vault, TitleMotdAdvacned, Tab, Skript, SkQuery, SilkSpawners, SexyMotd, ResourcePackAPI, PvPStats(skript I made), ProtocolLib, PlayerVaults, PlayerHeads, PlaceholderAPI, Pl3xIcons, ObsidianDestroyer, NoChestPlus, MultiverseCore, mcMMO, LibsDisguises, LampControl, Koth, HolographicDisplays, GAListener, ForceResourcePack, ForceFields, floAuction, FeatherBoard, FBasics, Factions, Essentials(package), EnderChestPlus, CustomCrates CSGO, CoreProtect, CombatTagPlus, Clearlag, CheckNameHistory, ChatControl, Buycraft, BossBarAPI!

Sorry if I am bombarding you with these :(

Prevent combat tagging allies

People are able to combat tag their own faction or allies.

CTP its supposed to support HCFactions of dtrshock, right?

Any fixs for this?

No crash messages or anything.

Chest Opening

How do I disable opening chests while in combat, because block editing doesn't disable chests?

Magic Items dropped (InstantKill)

The plugin Magic gives a wand to the player, which can be kept in the inventory even when the player dies. With that option -which we enabled-, the player is supposed to never lose his wand on death. But CombatTag forces those items to drop on the floor when someone disconnect while tagged, making them lose there wands when they are not supposed to. Do you think this issue can be fixed...?

Note : we're using the insta-kill, and we can't use the PVPlogger option.

Bug with spamming commands

Hello,

I've found a bug and players on my server are abusing it.

You can block commands with CombatTagPlus, whenever I spam one of those commands you get kicked for disconnect.spam but won't get caught for combatlogging.

If I remove the disconnect.spam kick with ChatControl, a different bug appears: If I spam again, the combat log just goes off.

2 bugs

Sudzzy@88021bf

Can this please be implemented in the plugin? Sudzzy made this for me in a custom plugin, this means I can't use the updated version anymore.

I also got another bug, I can't be teleported out while in combat even when the configuration option about teleportation is disabled.

I have a duel plugin and I am trying to teleport people to spawn once their enemy died, but they can't be teleported since your plugin is blocking it.

Adding Maven Repo to jenkins server

Would you guys be able to get the maven plugin for jenkins? It would allow other plugins to easily add your plugin as a dependency without having to do weird jenkins tricks of their own.

NPC Doesn't spawn, displays error in console.

06.10 01:14:49 [Server] INFO ... 11 more
06.10 01:14:49 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
06.10 01:14:49 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
06.10 01:14:49 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
06.10 01:14:49 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
06.10 01:14:49 [Server] INFO at net.minelink.ctplus.listener.NpcListener.spawnNpc(NpcListener.java:57) ~[?:?]
06.10 01:14:49 [Server] INFO at net.minelink.ctplus.NpcManager.spawn(NpcManager.java:32) ~[?:?]
06.10 01:14:49 [Server] INFO at net.minelink.ctplus.compat.v1_7_R4.NpcPlayerHelperImpl.spawn(NpcPlayerHelperImpl.java:53) ~[?:?]
06.10 01:14:49 [Server] INFO Caused by: java.lang.NoSuchFieldError: players
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:298) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:744) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:747) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerList.disconnect(PlayerList.java:358) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:501) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:516) [spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot.jar:git-Krunchit-f795f27]
06.10 01:14:49 [Server] INFO org.bukkit.event.EventException
06.10 01:14:49 [Server] ERROR Could not pass event PlayerQuitEvent to CombatTagPlus v1.2.2-SNAPSHOT

Duping glitch

Duping glitch with the plugin.

I'm running drtshock's HCF plugin (I run a HCF server) & your CombatLog plugin.

When a faction member logs off, you can kill the member, resulting in their items dropping, if they are revived via purchasing a revive on my Buycraft the player respawns where they were and have everything they had previously before they logged out causing it to dupe.

Extend NPC time on hit

Add a way in the config like resetTimeOnHit: true

And it resets the time to the NPC despawn time when a player is hit. This way it prevents players from missing out on killing a combat logger.

Issue with BETA Builds and NPC spawning

When an NPC spawns on the new BETA build (Latest as of 14th of April), when you have NPCs enabled, when you logout, they despawn but leave the name in chat. At 1 point I had about 12 "MoeXIV"s online.

VERSION: 1.7 Spigot Protocol Hack

API teleport NPC

Hi !
I'm creating an ehancement for the HCFactions plugin, and i'm usign your (wonderfull) plugin's API. But I have a problem, I'm not able to teleport a NPC who's created by the plugin. Would you be able to add this to the API ? Or explain how I can do this.
Thank you !

IMPORTANT block all commands except /ct

This is very important feature for a lot of people. Can you make the blacklist commands can work as the whitelist commands.

E.g.

This config option will make all the blacklist commands works as whitelist command.

blacklist works as whitelist: true

This will block all commands except what commands that you whitelisted.
Please add this, thanks!

Issue with NBT item

I have this special item on my server: https://gyazo.com/e9e12d304f6278fdf117c3e48e3a88f7

It uses the minecraft attribute to give you another row of hearts

However, if combat tagged then logging out then back in, you permanently keep this extra row of hearts. Putting the chestplate on and off then adds an additional row, so you can end up with infinite health essentially if a player keeps doing this.

After just doing it twice:
https://gyazo.com/7030a0a15010d8754edd0d5e8f0071a8 https://gyazo.com/65ed71c3f88cdfdb7be9cb79dfeb58d7

I would appreciate if this could be looked into soon as possible as that is a pretty big problem for my server

NpcDespawnEvent getting fired twice on NPC death

The NpcDespawnEvent seems to be getting fired twice when an NPC gets killed; once with the despawn reason being DEATH and once with the despawn reason being DESPAWN. Not sure if this is intentional or not but it doesn't really make sense.

Playersql

Hello ,

I currently facing a concern of duplication with playersql , if a player disconnects battle it poussédait tomb , and when he reconnects it to its inventory as if nothing had happened

Could you help me with her ​​?
Sorry for my bad english , good day

Combat tag bug

You can break a block and "glitch" inside it and they get taken out of combat.

How to use the api?

I need to hook my plugin to check the isNpc(Player) thing, but i can't find any documentation about your api. Can you help me?

cant hurt NPC

when a players logs out you cant hurt the npc... there are no errors in the console

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.