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

    I can try and pass the NPC's health to the player.
     
  3. Offline

    solidsnake916

    not sure if that will fix what is happening, players will now logout, and login within 3 seconds, and then get the default 3 second godmode from notch to own people, and repeat the process. the npc has godmode for like 3 seconds.
     
  4. Offline

    solidsnake916

    any news on that request to fix the npc health on logout, because if theres a waiting time it gives the player time to log in and effectively own with 3 second godmode.
     
  5. Offline

    cr0ss

    Any chance this will get updated with the new 1.0 dev build? :D
     
  6. Offline

    Mertainer

    Will upgrade when there's a stable bukkit release - I need the NPC API to be updated to most probabbly.
     
  7. Offline

    Sergeant1337

    What if you just want to log out, and someone kills your NPC?
    Can you make it so it only spawns an NPC when you're in combat? Like if you where hurt by another player for 10 sec you won't get an NPC?
     
  8. Offline

    Mertainer

    If you want to 'just logout' just do it in a safe place.
     
  9. Offline

    asm0deus

    Really need updated to 1.0 - this is literally the only plugin out of the 40 we use that didnt work on the transition :(

    Any help is greatly appreciated!
     
  10. Offline

    Mertainer

    At the moment everything is working except a quite annoying bug.

    I changed the way NPCs spawn so now they actually have HP the player had when he logged off, and any damage dealt to the NPC is applied when the player logs in.

    The problem is when the onQuit or onKick gets called, the player.getHealth() command always returns 20, no matter what (= full hp) - which ruins the whole way of it working. I'll have to check on this, might be a bukkit bug.
     
  11. Offline

    l104693

    I get spammed with this message:
    Code:
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    v17:11:45 [SEVERE] Exception in thread "Thread-812"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-813"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    p17:11:45 [SEVERE] Exception in thread "Thread-814"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-815"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-816"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-817"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-818"
    17:11:45 [SEVERE] Exception in thread "Thread-819"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    l17:11:45 [SEVERE] Exception in thread "Thread-820"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-821"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-822"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:45 [SEVERE] Exception in thread "Thread-823"
    17:11:45 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:45 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:45 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:45 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    o17:11:45 [SEVERE] Exception in thread "Thread-824"
    gout17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.a
    a()V
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-832"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-831"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-830"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-829"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-828"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-827"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-826"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-833"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    
    17:11:46 [SEVERE] Exception in thread "Thread-834"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-836"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-837"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-838"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-839"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:11:46 [SEVERE] Exception in thread "Thread-840"
    17:11:46 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.Entity.aa()V
    
    17:11:46 [SEVERE]       at org.martin.bukkit.npclib.NPCManager$1.run(NPCManager.
    java:44)
    17:11:46 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    17:11:46 [SEVERE]       at java.lang.Thread.run(Unknown Source)
     
  12. Offline

    Mertainer

    Don't try to use the 1.8.1 version on a 1.0.0 Server. Read the post before this - I didn't upload anything for now.
     
  13. Offline

    l104693

    Sorry, didn't mean to be rude. But I was trying to help you by sending in a bug-report :)
     
  14. Offline

    Mertainer

    Ah sorry! That's related to the NPCLib, it's already fixed in my "unreleased dev" build, which is being held cause of that bug.
     
  15. Offline

    squidicuz

    It may have been fixed... I dug through the release notes from 1550 back but couldn't find... I thought I saw something about fixing player.getHealth() the other day. :s
     
  16. Offline

    Mertainer

    I'll check.

    Just tried the latest dev build and it doesn't work :\

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

    Nathuram

    Any news about the state of this great plugin?
     
  18. Offline

    surtic

    Any News?
     
  19. Offline

    Luxius96

    Dont Work in my server i test other plugin and dont work.. i use factions... NPC have GOD MODE...
     
  20. Offline

    lastern

    This is the best idea and best plugin for pvp servers and i'm waiting for it updated
     
  21. Offline

    MiHo

    Are there any known plugins which could cause the NPC to be unkillable? (Towny and CreeperHeal are the only plugins I am using which have the purpose to protect stuff)
     
  22. Offline

    Yagman5000

  23. Offline

    HockeyMike24

    Can you please update this, people are not disappearing after the set time. They stay there forever.
     
  24. Offline

    Mertainer

    I'll try to. Haven't played minecraft in ages. Give me a few hours to set up eclipse to the latest bukkit.
     
  25. Offline

    8_year_old

    Same issue. I eventually had a lot of "pvplogger1...2...3" etc NPCs all over my world, even though they had been killed days previously. They worked fine, they died, their items dropped. But then the NPC bodies just stayed there, forever.
     
  26. Offline

    Elgenzay

    It seems as though there is no existing plugin that prevents pvp logging without leaving NPCs everywhere and that does not allow item duplication...
     
  27. Offline

    kylefrimousse

    is there a plugin where players cant do /home /spawn or /f home when in pvp, like this plugin where there is a timer before you get out of pvp, and a timer before you can do /home or w.e
     
  28. Offline

    Darthmineboy

    Use a seperate groups per world :) And then just dont give them the permission to do that :O...
    Use Groupmanager, permissionsex or permissions3 for permissions if you didnt know :)

    Pleased to help you Goodluck with your pvp server?? :)
     
  29. Offline

    Curtis3321

    Try AntiRelog
     
  30. Offline

    3DDarren

    When I went on this page, Google Chrome said this page had a virus or something. ಠ_ಠ
     

Share This Page