Inactive [MECH] AntiPvPLogout v1.3 - Avoid logging out in PvP [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Mertainer, Sep 7, 2011.

  1. Offline

    Mertainer

    AntiPvPLogout - Avoid logging out in PvP.
    Version: v1.3

    This plugin avoids players logging out of the game during pvp fights.
    I'm not sure if it works for running from mobs but it might.

    Video of how it works:


    Features:
    • Creates an NPC where the character logs out which acts as it.
    • Configurable amount of time the NPC stays.
    Download Version 1.3
    Source Code

    Configuration:
    Code:
    onKick: true
    logoutTime: 10
    worlds:
    - factions
    onQuit: true
    
    onKick - Spawn an NPC when the player gets kicked.
    onQuit - Spawn an NPC when the player quits the game.
    logoutTime - Amount of time the NPC stays before it gets removed.
    worlds - List of worlds where the plugin is active.

    Permissions:
    Code:
    antipvplogout.noNPC - Disables the NPC Spawning onQuit and onKick for the player.
    
    Updating from 1.0 to 1.1:
    Just delete the config.yml file inside your AntiPvPLogout folder. Don't delete the folder itself or the players who's inventory will reset will be lost, duping items.



    Changelog:
    Version 1.3
    • BukkitPermissions Support!
    Version 1.2.4
    • Double-check for NPC removal. Should avoid duping.
    Version 1.2.3
    • Fixed NPCs not dropping items. Eish I think this time's the charm.
    Version 1.2.2
    • Fixed bugs related to 1.2 Version. Fully tested & Working now.
    Version 1.2
    • Updated to Minecraft Version 1.8 - Haven't tested it!
    Version 1.1
    • Added multi-world support. Choose which worlds you want the protection.
    • Added onQuit and onKick properties.
    Version 1.0
    • Initial Release.
     
    lastern, sbeex and kahlilnc like this.
  2. Offline

    Mertainer

    Try this build. Where I am atm I can't run minecraft so I can't test it >:

    Download 1.2.1

    Please reply if it works so I can update the main thread.

    I haven't tested on it - it does spawn the NPC tho I'm unsure if monsters will target it. I can try and make it possible :)

    EDIT: Idea was from Ultima Online.

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

    solidsnake916

    Don't Work, Nothing Spawns where the player left..

    Edit: The tests i did.
    Tested hitting a person they leave no npc.
    Tested being near a player having them leave no npc.
     
  4. Offline

    Mertainer

    Strange, I tested on mine and it did work. I'll look into the code in a while.
     
  5. Offline

    solidsnake916

    ill set up a server with just your plugin to see if it works or not. It may be a plugin confliction... which is worse, because i need every single one i have on the server.
     
  6. Offline

    Trollkemada

    Nice idea, i'll test in some hours :)

    Nothing spawns :( tested with bukkiit #1337

    I really hope you @Mertainer can fix it, cause it would be a great plugin

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

    Mertainer

    Fixing now. Cus it worked for me.
     
  8. Offline

    Trollkemada

    If you need some feed back or someone to help, im avaible :)
     
  9. Offline

    Mertainer

    Alright, it's done and tested. Fixed :)
     
  10. Offline

    godgodgodgo

    No, combat tag gives you a status which you keep for a while (tagged or untagged)
    From what I see this plugin actually keeps your character there even when you've logged off.
     
  11. Offline

    solidsnake916

    Ok major bugs, it spawns the npc... BUT. When you kill the npc it don't drop their items. ALSO, when the join the game again, they spawn at the same location the logged out at, alive, and with all their items.

    Please fix this, its so close to what i need.

    Update: with 1.2.3, you got it right, when they die offline they spawn at spawn. when they die, they drop their items.

    Everything Works As it should, Thanks Very Much! This will stop them PVP Loggers now.

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

    Trollkemada

    I'll test 1.2.3 in some hours :)
     
  13. Offline

    solidsnake916

    URGENT ISSUE, PLEASE FIX THE BOTTOM ASAP!

    Theres an issue where you can kill the npc twice or more when the player is offline, and get double or triple their items.
     
  14. Offline

    Nathuram

    I've been looking for a plugin like this but I'm not about to invite another dupe exploit t0 the server. When do you think this will be fixed?
     
  15. Offline

    Mertainer

    When I'll get home I'll try and fix it.

    I added a double-check for removing players in 1.2.4. Tested and no dupe items found.

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

    Trollkemada

    @Mertainer

    Umh, two issues here :

    - The NPC does NOT spawn any items :(
    - The plugin is making the guy die twice, that can be a troublec if you have other plugins which manage death (for example, take away money on death, or cast msg when someone die) If you could cancel the second death event, would be cool :)

    Thanks for the plugin is really usefull, i hope you can fix those quick :)
     
  17. Offline

    Mertainer


    Strange, as for when I tested it did drop items. Maybe some plugin might be causing this.

    I tried before spawning the items @Death but it caused dupe items.

    About the double-death - what I can do is when the player logs in instead of setting his health to 0 I can just try and force a respawn - shouldnt conflict like this.

    I think there's no command to respawn a player by force - i'll check into alternatives
     
  18. Offline

    turbonadduv

    Could you please add permissions support?
     
  19. Offline

    Mertainer

    Permissions support added.
     
  20. Offline

    worstboy32

    Are all bugs fixed?
    I would like to use this plugin on our server.
    CombatTag isnt working like how it was a long time ago.
    And im using factions will the players when they die spawn at there faction home?
     
  21. Offline

    Trollkemada

    @Mertainer

    Couldn't you just cancel the event when you kill the no real player?

    I'll test about the npc spawning items with just this plugins and I'll feedback to you when i know something

    @Mertainer

    I have just test with only that plugin, and it's not spawning any item. ( 1.2.4 with bukkit #1337 )

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

    Mertainer

    It spawned for me...will test into it.
     
  23. Offline

    solidsnake916

    @Mertainer

    Tested: (Bukkit #1337, AntiPVPLogOut v1.3)
    Bugs: Double Death: When you kill npc it counts as the 1st death, and when player relogs in it counts as the 2nd death.

    Suggestion: Double Death: It works perfectly fine in factions as a penatly to the player for logging out in combat. If you do fix the issue, can you still leave an option to have them die.

    Duplication of items has been fixed, i tested for 40 minutes with 4 other people.

    Thanks! This plugin is exactly what i was looking for.
     
  24. Offline

    Mertainer

    Alright its good that it works now. About the double death i cant seem to find a solution for it that wont break spawn-altering plugins
     
  25. Offline

    solidsnake916

    maybe a way of forcing /spawn? or /tppos * * * or something to hook into other plugins, Yes its sloppy.
     
  26. Offline

    dannycrafts

    a thanks! I ill check it out, AntiPvpLogout isn't working for me.
     
  27. Offline

    solidsnake916

    As i said above Combat Tag isnt the same, you must hit the player for the npc to appear when the player logs out. This will do it on logout no matter what, to prevent all sorts of Combat log.
     
  28. Offline

    Nathuram

    I'm having some complaints from users that when they kill the NPC it doesn't drop the players equipment.
     
  29. Offline

    Karlkorv

    PermissionsEX bpermissions groupmanager superperms and bukkitpemissions
     
  30. Offline

    Mertainer

    I added bukkitpermissions support for now, as about not dropping items when I tested it did drop. can you check the situations in which it doesnt or providemore details? about the double-death as I am aware that event cant be cancelled, I might be wrong tho.
     
  31. Offline

    solidsnake916

    hi there, can you make npcs get hurt immediately when they are created, due to the fact people can login before damage actually occurs and kill the person with 2-3 second godmode from notch code.
     

Share This Page