[MECH] CombatTag v5.1 - Essential for PvP: penalties for PvPloggers.[BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Trc202, Jun 11, 2011.

  1. Offline

    Trc202

    Valdifer likes this.
  2. Offline

    Trc202

    The only other way I can think of to implement this, is to spawn a npc when a player logs out. I've tried spawning npc's before but I just don't have the skill to do it at the moment.
     
  3. Offline

    Kainzo

    well - spawning an NPC won't do much good unless it affects the real character's inventory if they die.
     
  4. Offline

    GmK

    Kainzo, I know you would just like to avoid people being able to log out - but you cannot change how the MC client behaves internally. I mean, how would you stop someone force-closing his client?

    This plugin does exactly what you need: Someone logs out during a pvp-fight and the attacker gets the inventory of the person that logged out. It isnt bloated at all in my opinion and works perfect for us.

    Hey @Trc202

    Love the plugin!

    Getting this on b928 though:

    Code:
    2011-06-25 13:30:00 [SEVERE] Could not pass event ENTITY_DAMAGE to CombatTag
    java.lang.NullPointerException
            at com.WildAmazing.marinating.CombatTag.CombatTagEntityListener.onEntityDamage(CombatTagEntityListener.java:31)
            at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:428)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:184)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:569)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:880)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    phaed and AS1LV3RN1NJA like this.
  5. Offline

    Kainzo

    We're not trying to change people from logging out, we're trying to make it so their entity stays online for a short time more. Afforess already said he had a method to do this but was unsure if he wanted to keep working at it.
     
  6. Offline

    GmK

    But whats the worth of adding an even more complicated programming if the basic functionality that you get the inventory of someone that logs out in a fight is already there? Isnt that all you'd want?
     
  7. Offline

    Kainzo

    consider the player.dat files already exist - its less complicated in the end to just keep those player entities loaded in for a bit more, whether they crash/log etc.
     
  8. Offline

    Trc202

    I was unable to reproduce the error, however I believe I have fixed it. Re-download CombatTag.
    Just curious are you able to reproduce the bug, or was it a one time occurrence (before the update)?
     
  9. Offline

    GmK

    Thank you!

    I wasnt able to reliably reproduce it, but it seems it happens after restarts - sometimes. Sorry for bothering you with it if it was very specific to our setup. Love the plugin :)
     
  10. Offline

    _Hayleigh_

    Any chance you could add a restrict teleport feature?

    I find besides logging out players using /spawn to go back to the spawn point during PvP fights to be the number 1 exploit.

    Maybe you could do it like if the players not full HP (full hearts) they cant use x commands (ie /spawn /warp etc)
     
  11. Offline

    GmK

    As a temp solution, why not add a warmup to these command with a plugin like bcooldown? On our server we have a 20sec warmup on all /home and /spawn and /warp commands,
     
  12. Offline

    embty

    Is it possible to add a death trigger when player does ANY kind of teleport? I have a delay on /home Factions doesnt allow nearby teleport. BUT some ppl are smartasses they use Arena spectator commands and such things...
     
  13. Offline

    _Hayleigh_

    Essentials can make it so you have to stand still for (x) seconds before being teleported - BUT if you use the /spawn/home etc during that time it does not give the user any msg, leading people to think the server is lagging or their /spawn is broken.
     
  14. Offline

    embty

    Yeah Im not talking about /home /spawn essentials command. Like Mobarena has /ma spec and PvParena has /pa spec. poeple are using that to avoid combat.
     
  15. Maybe a config file with a list of commands blocked?
     
    embty likes this.
  16. Offline

    Trc202

    Already on it. It will have a couple of new config options:
    1. The option to turn on blocked commands
    2. The ability to specify which commands are blocked when tagged*
    * This will only check for the first part of the command ie "/tp playername" will only see "/tp" and judge whether to block it based on that alone.
    [Edit]
    Almost forgot, it will also include the message to send to the player when the command is blocked.

    Updated to 2.8 you can now disable commands, by default all commands are enabled you must change disablecommands to true to enable this new feature. Example list of disabled commands "/tp::/warp::/heal".

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    AS1LV3RN1NJA and GmK like this.
  17. Offline

    embty

    Thank you very much!
     
  18. Offline

    Oscarius

    So, DisabledCommands is simply not working for us. I have specified the following commands to be disabled:
    DisabledCommands=/tp::/pw::/god::/mvspawn::/mvtp::/groupspawn
    However, using them while tagged still works! What could be the problem?
     
  19. Offline

    Trc202

    Make sure you set DisableCommands=true
    The configuration file is messy right now, it's on my todo list to clean it up.
     
  20. Offline

    marinating

    Awesome work :D
    You did all of the stuff I was too lazy to do.
     
  21. Offline

    filszyp

    I never thought a plugin like this existed! I found it by accident. It's perfect! BIIIIG thank you! Now my players will no longer get in word-fight over who escaped from fight ;) I especially love the ability to limit ANY commands! This means every plugin out there is compatibile. Again big thank you!
     
  22. Excellent plugin! Thanks.

    Would it be possible to put in some permission nodes to prevent the tagging on certain players or groups? There's an exploit using the war and mobarena plugins that allows a player to tag another player, leave and get all the items they had in the area. Also, It would be nice as an admin not to be tagged and prevented from using the restricted commands.
     
  23. Offline

    Master_Queef

    I don't understand why this isn't one of the most popular plugins.
    This is seriously just as useful as Worldguard or essentials.
    Thank you good sir for this fine plugin.
     
  24. Offline

    kahlilnc

    I sure hope this is 953 compatible?
     
  25. Offline

    Trc202

    I'm looking into how to fix the arena problems, i've sent a pm to the developer of war but have not yet received a response. It looks like MobArena already has the api with events I need support for it will be added in the next version. I'm still hesitant about adding permissions though I most likely will.


    I believe it is, we haven't had any problems with it on our server.

    P.S.
    Thanks everyone for the kind words and sorry for taking so long to reply (Summer college classes are long).
     
  26. @Trc202
    Suggestion if you haven't had this one already.
    Message for when the combat tag wears off? if possible ;')

    Also option for the combat tag to be ignored if the person who applied it has died.
     
  27. Offline

    mineversus

    Supports Jail

    Can i have more information about it ?
    Nobody is in jail when they leave and they die but it's write Penalty : OTHER
    Can you help me, thank you !

    Grace_period=20
    LogPlayers=false
    MessageToTagged=&d[CombatTag] &6Tagged by\:&c $tagger \:\:&6StdGracePeriod\: $graceperiod seconds \:\:&6/ct for more info.
    Extended_Grace_Period=60
    PvpMessage2plr=&d[CombatTag] &c $tagged &6 was executed for logging off while in combat with&c $tagger
    Version=2.8
    DisabledCommands=/tp\:\:/warp
    UseJail=true
    Penalty=OTHER
    MsgToPvPLogger=
    JailTime=5
    DisableCommands=true
    DisabledMsg=&d[CombatTag] &6You can't do that while you are tagged
    MessageToTagger=&d[CombatTag] &6Tagged\:&c $tagged
    Lightning=false
    Debug=false
    MaxRelog=1
    ItemsDroppedMsg=&d[CombatTag] &c $tagged &6 has pvp logged. His/Her items drop at your feet
    TagTime=15


    JUST JAIL PEOPLE and set REMOVE inventory with plugin JAIL ! But Jail with CB don"t work for me _-'

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  28. Offline

    Trc202

    Sorry about that. While coding the jail portion I overlooked using it when the penalty is OTHER. This will be fixed in the next version.

    That would force all users to use jail and not everyone would want that.

    Currently the tags are only updated when the person is tagged. I could add a recurring task to do this however it could cause problems with latency. As for adding option for removing tag if the tagger died I'll think about it.
     
  29. Offline

    mineversus

    Thanks for your answer ! Great job ! I'm waiting so !
     
  30. Offline

    embty

    Could you please update to new RB bukkit.
    -Thanks!
     
  31. Offline

    Trc202

    Version 2.9 is out.
    Tested against CB 1000.
    Change-log:
    • Hopefully fixed stealing items from mob arena (Untested)
    • Fixed Jail support not working properly
    Still haven't heard anything back from the developer of War. If anyone has a better and simpler way to prevent the items from being "stolen" from arena's let me know.

    P.S. I'm still looking for a better way to setup configuration files, I might end up just writing my own at this point.
     

Share This Page