Inactive [SEC] AntiSpawnKill 1.1 - Prevents PvP Damage in spawn protection zone [1.2.3-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by nickrak, Jun 10, 2011.

  1. Offline

    nickrak

    AntiSpawnKill - Prevents PvP Damage in spawn protection zone
    Version: 1.1

    Adds PvP damage protection for all players within the spawn-protection area.

    Features:
    • Blocks PvP damage to players who are in the spawn protection area.
    • Multi-world support.
    Download Jar(Source Code included in Jar)

    Licensed under: Creative Commons 3.0: Attribution, Non-commercial, Share-Alike
    [​IMG]

    Changelog:
    Version 1.1
    • Now 1.2.x compatible (new bukkit event system)
    Version 1.0.4
    • Updated to use bukkit internal functions instead of reading file to determine spawn-protection area (Stability / Readability Fix).
    Older Versions:
    Show Spoiler
    Version 1.0.3
    • Updated Bukkit dependency to the same version that CB935 uses.
    • Changed read location of spawn-protection radius to the bukkit.yml file instead of the server.properties file.
    • NOTE: Server admins do not need to move the spawn protection numbers to the bukkit.yml, the CB version update will do that for you automatically.
    Version 1.0.2
    • Stopped blocking non-PvP damage. (ex. Player->Pig)
    Version 1.0.1
    • Build for CB 860
    Version 1.0
    • Initial Release
    • Blocks PvP Damage to players inside the spawn-protection area
    • Blocks PvP Damage from players inside the spawn-protection area (to be fair)
     
  2. Offline

    Wakko

    Configureable spawn radius?
    Over-ride for ranks to still kill or be killed in spawn?
    Multiworld support?
    Am I asking too many questions?
     
    Kitkat16 and bobjoetom2 like this.
  3. Offline

    nickrak

    Spawn radius is pulled from the server.properties file.
    It does support multi world. (However it does not support different protection radius per world)

    I may add overrides for op or permissions if there's a demand for it.
     
  4. Offline

    keitron

    how does this work
     
  5. Offline

    RugRats

    This plugin is self explanatory
     
  6. Offline

    nickrak

    The plugin reads your server.properties file and extracts the "spawn-protection" property.
    Then is listens to all entity-to-player damage events. If the entity is another player, then it checks the how far away they are from the spawn point. If the distance is less than the "spawn-protection" property, than it cancels the damage event.
     
  7. Offline

    Sharingan616

    This doesn't disable pvp, it disables all damage that one entity inflicts on another. This plugin is a great idea, but it would be nice if I could kill pigs and what inside the zone. :p
     
  8. Offline

    nickrak

    Patched.
     
  9. Offline

    nickrak

    Updated for CB934.
     
  10. Offline

    PacmanGamer

    it doesnt work :(

    2011-06-28 18:46:17 [SEVERE] Could not pass event ENTITY_DAMAGE to AntiSpawnKill java.lang.NoSuchMethodError: org.bukkit.Server.getSpawnRadius()I at nickrak.AntiSpawnKill.AntiSpawnKill$1.onEntityDamage(AntiSpawnKill.java:24) at org.bukkit.plugin.java.JavaPluginLoader$51.execute(JavaPluginLoader.java:598) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:419) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:184) at net.minecraft.server.Explosion.a(Explosion.java:152) at net.minecraft.server.World.createExplosion(World.java:1382) at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:159) at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120) at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68) at net.minecraft.server.EntityLiving.u(EntityLiving.java:692) at net.minecraft.server.EntityMonster.u(EntityMonster.java:30) at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231) at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34) at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69) at net.minecraft.server.World.entityJoinedWorld(World.java:1114) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:62) at net.minecraft.server.World.playerJoinedWorld(World.java:1096) at net.minecraft.server.World.cleanUp(World.java:1073) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:395) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  11. Offline

    nickrak

    The getSpawnRadius() method is new to Bukkit, make sure you're running the newest version of CraftBukkit.
     
  12. Offline

    wassilij

    Only PVP damage?

    Because sometimes my user are spawned inside a block and then .. xD
     
  13. Offline

    PacmanGamer

    yes, thank you :D
    it works.
    Awesome
     
  14. Offline

    nickrak

    Find a new spawn, or maybe use a plugin that supports exact spawn locations.
     
    wassilij likes this.
  15. Offline

    Tallkid96

    you should add an option where if someone attacks somebody in the spawn protection zone they get sent to jail
     
  16. Offline

    wassilij

    I have a deadchest plugin .. and sometimes a player use /kill, and then there is a chest in the spawn .. when they /spawn they are spawned in the chest and die .. die .. and die .. so can you deactivate ALL damage in the spawn?
     
  17. Offline

    nickrak

    There is no standardized jail function, if that ever gets implemented, I'll add it.

    This issue would still exist without this plugin, and damage by suffocation due to being inside a block isn't exactly PvP damage. That's outside the intended scope of this plugin. If chests are killing your players because they are spawning in the chest, you should report that as a bug to whatever plugin you use that handles spawning; unless your chest plugin is moving the chest to wherever the player is spawned, at which point you should report that to the deadchest plugin developer.
     
  18. Offline

    Dez

    I just wanted to suggest that it would be cewl if u could make it compatible with worldedit.
     
  19. Offline

    nickrak

    There's really no part of this plugin that is capable of being a part of WorldEdit. WorldEdit is for editing the world and has nothing to do with spawn protection. If you're looking for a PvP off-switch for a region, take a look at Regios.
     
  20. Offline

    Dez

    Yeah i found it right after i posted my comment but thanks for the suggestion.
     
  21. Offline

    nickrak

    Confirmed working with cb1000
     
  22. Offline

    SilverDragon

    Is it work in 'set spawn' plugins?
     
  23. Offline

    nickrak

    It works using the built-in Bukkit spawn mechanism, if the set spawn plugin uses that, then it will work.
     
  24. Offline

    nickrak

  25. Offline

    Crrazyme

    i like the mod but how do i change how far the protection should go because when i download it with winrar i have to extract it and it makes a permission thing but with java it doesnt make a permission thing cuz if u extract it it wont work
     
  26. Offline

    nickrak

    This plugin doesn't use permissions. To change the spawn protection radius, check the server configuration file.

    Also, you don't extract anything, just place the jar in the plugins folder.
     
  27. Offline

    1dominator11

    ok so i installed the plugin and put it in my plugins file but how do i set the non pvp zones? im new to bukkit and u didnt say anything on how to set the zone help me
     
  28. Offline

    nickrak

    The no-PvP area, is a circle around the spawn the same size as the "settings.spawn-radius" from the bukkit.yml file.
     
  29. Offline

    number1_Master

    is this inactive?
     
  30. Offline

    nickrak

    Depends on your definition of "inactive".

    I do not actively maintain this plugin because there are no reported issues. This plugin uses parts of Bukkit that don't/shouldn't be changing so there's no reason to update when it's not broken.
     

Share This Page