Inactive [MECH/FIX/ADMN]ANTIPvPLOGGER V 1.4 - Prevent Players From Logging Out [1.2.5RB]

Discussion in 'Inactive/Unsupported Plugins' started by KillerSmurf, Dec 4, 2011.

  1. Offline

    KillerSmurf

    DEVBUKKIT HAS BEEN MADE GO THERE:http://dev.bukkit.org/server-mods/ant/


    I RECENTLY DECIDED TO RE-CODE THE WHOLE PLUGIN IT WORKS A TON BETTER AND NO DUPES... PLEASE GO TO THE BUKKIT DEV!
     
    lastern, Orcem12 and EarlyLegend like this.
  2. Offline

    MikeA

    Sweet! Any way you could make it work per world? Quite a few people have a PvP based world, then a non-pvp main world.

    Maybe make a config file where the user can set the worlds to enable in?
     
    goldhaxx and EarlyLegend like this.
  3. Offline

    Twebby95

    Great plugin, but any chance you could add a feature so that it broadcasts when a player combat loggs? It would make the plugin even better :) like you could have it in coloured text e.g "&bPlayer &8has logged from &bCombat!" or something similar. Maybe you could even give the combat logger a couple of seconds to log back in, and be alive or if they dont log in, then their items are dropped and they die. Just some suggestions, but i would prefer the broadcast one :) - thanks
     
  4. Offline

    Spadar Faar

    Tested this on 1550, most of it appeared to work correctly and without error. However, the items were not cleared from the logged players inventory and he was not killed upon return.
     
  5. Offline

    Shooty

    Enchantements support ?
     
  6. Offline

    KillerSmurf

    All of these ideals are taken into consideration. Some are added.

    Please report issues on the issue tracker, if you do not want to sign up you can post them here, although I look at the issue tracker more, and I will be able to reply to it at all times of the day, but this forum; I can only reply at certain times of the day. Also you can add some features to the wiki page if you would like :D?

    Should work now.
    ======================
    Added, the message things.

    Working on it.

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

    Spadar Faar

    It works now smurf, however I also get this error in the console each time a PvP logged npc is damaged. Still on 1550(1564 gives the same errors).

    Code:
    08:46:05 [SEVERE] Could not pass event ENTITY_DAMAGE to AntiLogger
    java.lang.NullPointerException
            at com.killersmurf.antilogger.listeners.ALEntityListener.onEntityDamage(
    ALEntityListener.java:51)
            at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.j
    ava:700)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:594)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:208)
    
            at net.minecraft.server.EntityArrow.w_(EntityArrow.java:202)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1251)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:1
    07)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1233)
            at net.minecraft.server.World.tickEntities(World.java:1140)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:507)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  8. Offline

    KillerSmurf

    I'll check it out. I had to test my pvp detector on a cow, no one was on skype and willing to be a tester i think I know what it is.
     
  9. Offline

    Shay Williams

    Hey Killer,

    Love the plugin; -snip- (didn't read code enough, no issues <3)
     
  10. Offline

    KillerSmurf

    Thanks, are you saying you found no issues? yet? If so thank god.
     
  11. Offline

    md_5

    Nice!
    /approved
     
  12. Offline

    KillerSmurf

    Thanks.
     
  13. Offline

    asm0deus

    seems like it works.. but getting ALOT of error spam in console
     
  14. Offline

    KillerSmurf

    Send me the error plus craftbukkit version.
     
  15. Offline

    Twebby95

    im using the plugin right now, and so far no errors and server is running smoothly on craftbukkit #1556. You did the combat log annoucner exactly how i imagined which is great, but is there any way to config the colours that are used for it? Also could you link me to other plugins you have made? I'm an owner of a Factions Hardcore PvP server and i am looking for a good plugin developer to get an admin position but needs to be able to make custom plugins for the server. Message me if you think you are capable.
     
  16. On server im playing, this plugin works strange a bit, everytime a person log off, no matter if he fight or not, the NPC creates.
     
  17. Offline

    Twebby95

    Yes i have same issue.
     
  18. I've got an issue - i can't hit NPC, only the real player !
     
  19. Offline

    NotYetRated

    Awesome idea fro a plugin! Will test it out tonight.
     
  20. Offline

    o0AzzA0o

    @KillerSmurf its working nicely can we possibly have a config file where we select if it creates an npc everytime without having to detect if player is in combat ? i feel this would be lighter on resources and im not worried if the person is detected in combat or not ..... reason is simple
    what if player is logging out to avoid combat in first place? i dont want them to be able to do that to :)

    Also for me atm everyone is being detected as a combat logger ... another reason to make it more simple?
     
    odielag likes this.
  21. Offline

    Shay Williams

    Hey KillerSmurf,

    You should add some NPE failsafes on some of the if statements, you always assume everyone is taged in your code. Also @o0AzzA0o this can be corrected by modifying the onPlayerQuit code in his plugin to check to see if the players are marked as "false" or are null in the battleid hashmap ^^.

    Using a modified version of this plugin @ www.lordofthecraft.net
     
  22. Offline

    KillerSmurf

    It creates the NPC always, it just sends the message if he was in combat.

    What do you mean? Fail safes. Which statements do you think can be risky?

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

    o0AzzA0o

    even if i kick a player with /kick it says he was in combat.
     
  24. Offline

    KillerSmurf

    Kay, I fix.
     
  25. Offline

    supayoshi1

    Killersmurf, I cant hit the players when theyre logged out?1565

    And spams the console

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    03:59:07 [SEVERE] Could not pass event ENTITY_DAMAGE to AntiLogger
    java.lang.NullPointerException
    at com.killersmurf.antilogger.listeners.ALEntityListener.onEntityDamage(ALEntityListener.java:75)
    at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.EntityHuman.f(EntityHuman.java:783)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:521)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    03:59:07 [SEVERE] Could not pass event ENTITY_DAMAGE to AntiLogger
    java.lang.NullPointerException
    at com.killersmurf.antilogger.listeners.ALEntityListener.onEntityDamage(ALEntityListener.java:75)
    at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.EntityHuman.f(EntityHuman.java:783)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:521)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    03:59:08 [SEVERE] Could not pass event ENTITY_DAMAGE to AntiLogger
    java.lang.NullPointerException
    at com.killersmurf.antilogger.listeners.ALEntityListener.onEntityDamage(ALEntityListener.java:75)
    at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.EntityHuman.f(EntityHuman.java:783)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:521)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    03:59:08 [SEVERE] Could not pass event ENTITY_DAMAGE to AntiLogger
    java.lang.NullPointerException
    at com.killersmurf.antilogger.listeners.ALEntityListener.onEntityDamage(ALEntityListener.java:75)
    at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.EntityHuman.f(EntityHuman.java:783)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:521)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    03:59:08 [INFO] <Dragonmane Sifkis> hi yung
    >
     
  26. Offline

    KillerSmurf

    V0.4 should fix this.

    V0.4 Is out download it for the latest fixes.

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

    Shay Williams

    ^

    Those are the errors I'm talking about.

    Add some "if(al.taskID.get(attacked) == null){return;}" before statements like:
    int prevTaskIdA = al.taskID.get(attacked);

    EDIT: Saw you went to 0.4; don't know if that fixed :p.
     
  28. Offline

    mario00037

  29. Offline

    Sayshal

    Lol Can I just laugh at this a bit.
     

Share This Page