Spigot Anti Damage Indicators 1.5

Prevent players from viewing the health of other players.

  1. libraryaddict

    Patron

    libraryaddict submitted a new resource:

    Anti Damage Indicators - Prevent players from viewing the health of other players.

    Read more about this resource...
     
  2. joehot200

    Supporter

    Unfortunately this could be done quite easily with a hacked client anyway :( - Even with this block.
    However, i like it, blocks the majority of mods out there.

    Your good with ProtocolLib :(
    Teach me, oh mighty master :S
     
    #2 joehot200, Sep 15, 2013
    Last edited: Sep 15, 2013
  3. libraryaddict

    Patron

    How would it be done?
     
  4. joehot200

    Supporter

    I am unsure what is sent to the client and what is not (like enchantments, and such) but i think the client could cleverly look at all players, (would have to presume they had 20 health when they were first loaded/sent) and then get the damage dealt to the player when they get hit by stuff
     
  5. libraryaddict

    Patron

    I don't think the server tells the client "Player 1 hit player 2"
    Instead it says "Player 1 moved his hand while looking that way"
     
  6. joehot200

    Supporter

    So in that case, if player Y swings his hand and 0.00001 seconds later player X gets damaged, it checks if player Y is less than 6 blocks from player X, and if player Y is facing player X, and if he is, Set the health of player X to whatever his health currently is, minus the amount of damage he got hit with.

    Obviously the principle is different with things like fire, but its still possible.
     
  7. libraryaddict

    Patron

    Except they are not going to do this just for a few servers.
    Especially since anti-cheat plugins will never pick this up.
     
    • Agree Agree x 1
  8. libraryaddict

    Patron

  9. jeff142

    Benefactor

    Anti-cheat plugins should pick this up, its a vary good idea.
     
  10. I'm stays on MC 1.5.2 (do not all mods updated :( ), and get next error -
    2013-11-09 16:25:57 [SEVERE] [AntiDamageIndicators] Unhandled exception number 1024 occured in onPacketSending(PacketEvent) for AntiDamageIndicators
    java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R2/WatchableObject
    at me.libraryaddict.Anti.DamageIndicators$1.onPacketSending(DamageIndicators.java:37)
    at com.comphenix.protocol.injector.SortedPacketListenerList.invokeSendingListener(SortedPacketListenerList.java:196)
    at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketSending(SortedPacketListenerList.java:150)
    at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:568)
    at com.comphenix.protocol.injector.PacketFilterManager.invokePacketSending(PacketFilterManager.java:543)
    at com.comphenix.protocol.injector.player.PlayerInjector.handlePacketSending(PlayerInjector.java:612)
    at com.comphenix.protocol.injector.player.NetworkServerInjector$1.intercept(NetworkServerInjector.java:158)
    at net.minecraft.network.NetServerHandler$$EnhancerByCGLIB$$116289f9.func_72567_b(<generated>)
    at net.minecraft.entity.EntityTrackerEntry.func_73117_b(EntityTrackerEntry.java:452)
    at net.minecraft.entity.EntityTrackerEntry.func_73125_b(EntityTrackerEntry.java:537)
    at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java:216)
    at net.minecraft.entity.EntityTracker.func_72786_a(EntityTracker.java:131)
    at net.minecraft.world.WorldManager.func_72703_a(WorldManager.java:37)
    at net.minecraft.world.World.func_72923_a(World.java:1848)
    at net.minecraft.world.WorldServer.func_72923_a(WorldServer.java:1216)
    at net.minecraft.world.World.addEntity(World.java:1836)
    at net.minecraft.world.World.func_72838_d(World.java:1728)
    at net.minecraft.block.Block.func_71929_a(Block.java:656)
    at net.minecraft.block.Block.func_71914_a(Block.java:637)
    at net.minecraft.block.Block.func_71897_c(Block.java:620)
    at net.minecraft.block.Block.func_71893_a(Block.java:1016)
    at net.minecraft.item.ItemInWorldManager.func_73084_b(ItemInWorldManager.java:479)
    at net.minecraft.item.ItemInWorldManager.func_73082_a(ItemInWorldManager.java:300)
    at net.minecraft.network.NetServerHandler.func_72510_a(NetServerHandler.java:772)
    at net.minecraft.network.packet.Packet14BlockDig.func_73279_a(SourceFile:46)
    at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:442)
    at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:223)
    at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53)
    at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:865)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:732)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:614)
    at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
    Can you fix this issue?
     
  11. libraryaddict

    Patron

    Thats because this isn't for 1.5

    I'll fix it anyways.
     
  12. libraryaddict

    Patron

    • Like Like x 1
  13. One more error (MCPC+, latest dev build of ProtocolLib):
    2013-11-17 19:29:57 [WARNING] [AntiDamageIndicators] Task #604 for AntiDamageIndicators v1.2 generated an exception
    com.comphenix.protocol.reflect.FieldAccessException: Cannot find 'scanPlayers' method. Is ProtocolLib up to date?
    at com.comphenix.protocol.injector.EntityUtilities.updateEntity(EntityUtilities.java:120)
    at com.comphenix.protocol.injector.PacketFilterManager.updateEntity(PacketFilterManager.java:844)
    at me.libraryaddict.Anti.DamageIndicators$2.run(DamageIndicators.java:67)
    at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:67)
    at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:777)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:732)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:614)
    at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
    Caused by: java.lang.NoSuchMethodException: net.minecraft.entity.EntityTrackerEntry.scanPlayers(java.util.List)
    at java.lang.Class.getMethod(Class.java:1665)
    at com.comphenix.protocol.injector.EntityUtilities.updateEntity(EntityUtilities.java:105)
    ... 9 more
     
  14. Please update :(
    [14:32:41 WARN]: java.lang.NullPointerException
    [14:32:41 WARN]:at me.libraryaddict.Anti.DamageIndicators$1.onPacketSending(DamageIndicators.java:38)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.SortedPacketListenerList.invokeSendingListener(SortedPacketListenerList.java:195)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketSending(SortedPacketListenerList.java:149)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:593)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.PacketFilterManager.invokePacketSending(PacketFilterManager.java:569)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.NettyProtocolInjector.packetQueued(NettyProtocolInjector.java:277)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.NettyProtocolInjector.onPacketSending(NettyProtocolInjector.java:228)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.ChannelInjector.processSending(ChannelInjector.java:199)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.ChannelInjector.access$000(ChannelInjector.java:52)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.ChannelInjector$2.onMessageScheduled(ChannelInjector.java:178)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.ChannelProxy$2.schedulingRunnable(ChannelProxy.java:91)
    [14:32:41 WARN]:at com.comphenix.protocol.injector.netty.EventLoopProxy.execute(EventLoopProxy.java:76)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.NetworkManager.b(NetworkManager.java:111)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.NetworkManager.handle(NetworkManager.java:89)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.PlayerConnection.sendPacket(PlayerConnection.java:735)
    [14:32:41 WARN]:at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [14:32:41 WARN]:at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [14:32:41 WARN]:at java.lang.reflect.Method.invoke(Method.java:606)
    [14:32:41 WARN]:at me.confuser.barapi.Util.sendPacket(Util.java:72)
    [14:32:41 WARN]:at me.confuser.barapi.BarAPI.sendDragon(BarAPI.java:214)
    [14:32:41 WARN]:at me.confuser.barapi.BarAPI.setMessage(BarAPI.java:124)
    [14:32:41 WARN]:at com.swordpvp.hadesgames.TimeM.onSecond(TimeM.java:58)
    [14:32:41 WARN]:at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    [14:32:41 WARN]:at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [14:32:41 WARN]:at java.lang.reflect.Method.invoke(Method.java:606)
    [14:32:41 WARN]:at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    [14:32:41 WARN]:at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [14:32:41 WARN]:at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
    [14:32:41 WARN]:at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482)
    [14:32:41 WARN]:at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467)
    [14:32:41 WARN]:at com.swordpvp.hadesgames.HadesGames$1.run(HadesGames.java:50)
    [14:32:41 WARN]:at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58)
    [14:32:41 WARN]:at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:583)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:540)
    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:446)

    [14:32:41 WARN]:at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)
     
  15. libraryaddict

    Patron

    Try updating protocollib or something.
    Shouldn't be this plugin
     
  16. Its 3.1.0.
     
  17. libraryaddict

    Patron

  18. libraryaddict

    Patron

    Not possible
     
  19. libraryaddict

    Patron