Premium Spartan AntiCheat

Discussion in 'Resource Discussion' started by Vagdedes, Jul 9, 2016.

  1. Seeing an error:
    [21:26:15] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to Spartan vBuild 300
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:229) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:918) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:805) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:761) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:950) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity0(EntityLiving.java:1622) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1026) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityMonster.damageEntity(SourceFile:69) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.entity.CraftLivingEntity.damage(CraftLivingEntity.java:258) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.mcmonkey.sentinel.SentinelWeaponHelper.punch(SentinelWeaponHelper.java:252) ~[?:?]
    at org.mcmonkey.sentinel.SentinelAttackHelper.tryAttackInternal(SentinelAttackHelper.java:425) ~[?:?]
    at org.mcmonkey.sentinel.SentinelAttackHelper.tryAttack(SentinelAttackHelper.java:111) ~[?:?]
    at org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1272) ~[?:?]
    at org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1477) ~[?:?]
    at net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:425) ~[?:?]
    at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:311) ~[?:?]
    at net.citizensnpcs.nms.v1_15_R1.entity.EntityHumanNPC.tick(EntityHumanNPC.java:439) ~[?:?]
    at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:614) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.World.a(World.java:718) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:386) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1076) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:393) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:978) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:823) [spigot.jar:git-Spigot-530f668-4633e6c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
    Caused by: java.lang.NullPointerException
    at me.vagdedes.spartan.e.f.a(EventsHandler6.java:98) ~[?:?]
    at me.vagdedes.spartan.e.f.b(EventsHandler6.java:201) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    ... 28 more
    [21:26:17] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to Spartan vBuild 300
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:229) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:918) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:805) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:761) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:950) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity0(EntityLiving.java:1622) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1026) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityMonster.damageEntity(SourceFile:69) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.entity.CraftLivingEntity.damage(CraftLivingEntity.java:258) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.mcmonkey.sentinel.SentinelWeaponHelper.punch(SentinelWeaponHelper.java:252) ~[?:?]
    at org.mcmonkey.sentinel.SentinelAttackHelper.tryAttackInternal(SentinelAttackHelper.java:425) ~[?:?]
    at org.mcmonkey.sentinel.SentinelAttackHelper.tryAttack(SentinelAttackHelper.java:111) ~[?:?]
    at org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1272) ~[?:?]
    at org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1477) ~[?:?]
    at net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:425) ~[?:?]
    at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:311) ~[?:?]
    at net.citizensnpcs.nms.v1_15_R1.entity.EntityHumanNPC.tick(EntityHumanNPC.java:439) ~[?:?]
    at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:614) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.World.a(World.java:718) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:386) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1076) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:393) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:978) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:823) [spigot.jar:git-Spigot-530f668-4633e6c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
    Caused by: java.lang.NullPointerException
    at me.vagdedes.spartan.e.f.a(EventsHandler6.java:98) ~[?:?]
    at me.vagdedes.spartan.e.f.b(EventsHandler6.java:201) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    ... 28 more
    [21:26:18] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to Spartan vBuild 300
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:229) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:918) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:805) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:761) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:950) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity0(EntityLiving.java:1622) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1026) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.EntityMonster.damageEntity(SourceFile:69) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.entity.CraftLivingEntity.damage(CraftLivingEntity.java:258) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.mcmonkey.sentinel.SentinelWeaponHelper.punch(SentinelWeaponHelper.java:252) ~[?:?]
    at org.mcmonkey.sentinel.SentinelAttackHelper.tryAttackInternal(SentinelAttackHelper.java:425) ~[?:?]
    at org.mcmonkey.sentinel.SentinelAttackHelper.tryAttack(SentinelAttackHelper.java:111) ~[?:?]
    at org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1272) ~[?:?]
    at org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1477) ~[?:?]
    at net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:425) ~[?:?]
    at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:311) ~[?:?]
    at net.citizensnpcs.nms.v1_15_R1.entity.EntityHumanNPC.tick(EntityHumanNPC.java:439) ~[?:?]
    at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:614) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.World.a(World.java:718) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:386) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1076) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:393) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:978) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:823) [spigot.jar:git-Spigot-530f668-4633e6c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
    Caused by: java.lang.NullPointerException
    at me.vagdedes.spartan.e.f.a(EventsHandler6.java:98) ~[?:?]
    at me.vagdedes.spartan.e.f.b(EventsHandler6.java:201) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    ... 28 more
     
  2. Vagdedes

    Supporter

    This originates from another plugin, sentinel.
     
    • Like Like x 1
  3. Vagdedes

    Supporter

    Vagdedes updated Spartan | Professional Anticheat Solution with a new update entry:

    Build 301 - Velocity Check Improvements

    Read the rest of this update entry...
     
  4. Hello @Vagdedes :)

    is it possible to modify a setting (or several) so that the plugin uses a little less resources?
    Currently Spartan has a timing of 2.23% for only 3.55 players on average. It seems very high and sometimes it causes significant lags when there are more than 8 players connected at the same time.

    Thank you for your work !

    Server infos:
    Spigot: 1.14.4
    Spartan: b299
     
  5. Vagdedes

    Supporter

    Enable asynchronous mode via settings.yml and reload the plugin via its command. Your server is likely lacking CPU resources.
     
  6. Precisely I do not understand why my server lag because we are on 4 dedicated cores at 5Ghz each and the server never uses more than 15-20% of CPU resources (even when is lagging at 15-16 TPS). We have 16G of ram and the server only uses 5-8GB ...
    At the end of the day the timings indicate that the server uses on average more or less 40% of the CPU. It's incomprehensible.

    Yet it drops to 15 or 16 TPS with 8-9 players when there is Spartan.

    Thank you, I will try with this option activated :)
     
  7. My server's lagging as well, which is quite odd because I'm running a OVH dedicated server. I'm also receiving an error view console that makes my server freeze up every 2 minutes. Here's the console error I'm getting, I'm very confused.

    Here's the Pastebin to my timing and the error: https://pastebin.com/H2mxirZ4

    Thank you!
     
  8. Vagdedes

    Supporter

    Thanks for reaching out. A customer reported the same part to be lagging their server. I will investigate soon, no more information needed. @Chevels I recommend you also look for me.vagdedes.spartan.i.y in your timings.
     
  9. Thank you so much! Should I just disable the plugin now in the mean time? =)
     
  10. Vagdedes

    Supporter

    Maybe downgrade to a version that worked well for you.
     
  11. What version works best for a 1.12.2 server that has the latest version of ViaVersion? Sorry for asking so much questions, but I only got this version because it seems to work (semi good) with Via Version installed. Every other version seemed to lag/cause not true anti cheat kicks and such.

    Thanks!
     
  12. Vagdedes

    Supporter

    I don't know, that's up to you to judge. I will attempt to make optimisations in the next update.
     
  13. Vagdedes

    Supporter

    Vagdedes updated Spartan | Professional Anticheat Solution with a new update entry:

    Build 302 - WaterLogged Blocks

    Read the rest of this update entry...
     
  14. Vagdedes

    Supporter

    Vagdedes updated Spartan | Professional Anticheat Solution with a new update entry:

    Build 303

    Read the rest of this update entry...
     
  15. Vagdedes

    Supporter

    That's a really old build of Spartan. You must update.
     
  16. Hi,

    since I updated Logblock and HackedServer plugins (I think it's the problem because I don't modifiy other thing), Spartan refuse to start. I've this error on server startup:
    > [19:08:51] [Server thread/INFO]: [Spartan] Enabling Spartan vBuild 303
    > [19:08:51] [pool-72-thread-1/INFO]: [Spartan Build 303] Failed to load CombatAnalysis check's data.
    > [19:08:51] [Server thread/INFO]: [Spartan] Disabling Spartan vBuild 303
    > [19:08:51] [Server thread/ERROR]: Error occurred while enabling Spartan vBuild 303 (Is it up to date?)
    java.lang.IllegalArgumentException: Plugin cannot be null
    at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.validate(CraftScheduler.java:443) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:176) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:167) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.scheduleSyncRepeatingTask(CraftScheduler.java:162) ~[server.jar:git-Spigot-56f8471-56118c6]
    at me.vagdedes.spartan.i.t.run(PlayerDataScheduler.java:13) ~[?:?]
    at me.vagdedes.spartan.Register.onEnable(Register.java:104) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:461) [server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:375) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:449) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:266) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:775) [server.jar:git-Spigot-56f8471-56118c6]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

    Versions 299 to 303 = same error

    Is there a way to fix this ?

    Thanks for your work !
     
  17. Vagdedes

    Supporter

    Pastebin is down. There's no fix currently. I am researching.
     
  18. Vagdedes

    Supporter

  19. What responsiveness ! Thank you, I'll try this...