Inactive [FIX/TP] SafeVoid v1.2.2 - Disable falling through void [1.1-R7]

Discussion in 'Inactive/Unsupported Plugins' started by mrciku, Oct 12, 2011.

  1. Offline

    mrciku

    SafeVoid (15/5/12 4:36 PM [+8GMT])

    (Video by fussionzz97)​

    Description: Continuation of NoVoid. Instead of using onPlayerMove listener, it uses onEntityDamaged to save some performance. To also save more performance, it makes a bedrock to stop the player from continuously falling. I also know that WorldGuard has this function already. This'll be for servers with no WG or if the WG void protection is not working. However, if I am not wrong, WG doesn't patch up the hole to the void for you, this does though.​

    Features:
    - In-game commands​
    - Uses onEntityDamaged hook to save performance​
    - Disallows falling through the void by teleporting the player to the highest block and making a bedrock on Y=0 to save performance.
    - Configurations to disable it for certain worlds
    - Configurations to disallow players in creative mode from falling into the Void in all worlds
    - Configuration to teleport to spawn instead

    Default Configurations:

    Commands:
    • /safevoid OR /sv - Prints all commands
    Permission Nodes (case sensitive) [PermissionBukkit, PEX, bPerms]:
    • safevoid.* - Everything below
    • safevoid.admin - Use the /safevoid commands
    Changelog:
    v1.2.3​
    - Fixed the falling into the void with a vehicle bug where the player gets stuck instead.​
    - Edited the /sv menu, typo errors.​
    v1.2.2​
    - 1.2 support (Events)​
    v1.2.1.2​
    - Fixed bPermissions support​
    v1.2.1.1​
    - Fixed NPE in the latest development builds of craftbukkit​
    v1.2.1​
    - Fixed NPE​
    v1.2​
    - Implemented in-game commands​
    Show Spoiler

    v1.1.1​
    - Now using the new YAMLConfiguration​
    - Took out creating a bedrock when "teleport_to_spawn" is set to true​
    v1.1
    - Added "teleport_to_spawn" configuration to set the players position to spawn instead of highest block when dropping.
    v1.0
    - Initial release


    BUKKITDEV:
    http://adf.ly/8YDPP (Just 5 seconds to contribute something to me :))

     
  2. Offline

    Shooty

    Can you add lava event ?

    Can you add TP to the spawn ?
     
  3. Offline

    gameswereus

    Thanks. This will probably come in handy for my dumber users bent on killing themselves.
     
  4. Offline

    mrciku

    I'll work on it soon :D

    For the lava, maybe I'll work on a separate plugin. This is meant for void only.

    EDIT: Ok done.

    Thanks
     
  5. Offline

    thisguy128512

    Actually, this is better than what WG has because it auto-repairs void holes. I commend you.
     
  6. Offline

    mrciku

    I thought WG also does it? It replaces with glass. This replaces with bedrock ^^
     
  7. Offline

    MonsieurApple

  8. Offline

    mrciku

    Updated to v1.2.1!
     
  9. Offline

    ShootToMaim

    Works really well :D. Keep up the great work.
     
  10. Offline

    mrciku

    No problem :D
     
  11. Offline

    prodige30

    Can you update it for version 1529+ ?
     
  12. Offline

    mrciku

    It should work... Unless Bukkit changed something, could you try it out for me?
     
  13. Offline

    prodige30

    I tried but nothing changed, i just fall in the voids..
     
  14. Offline

    mrciku

    Hold on let me try

    EDIT: I'll try when I get back, please try to post any error before I come back thanks. If theres no errors, then hold on.

    EDIT 2: Works completely fine for me, try looking for errors when you start the server

    If no one needs me to update this, I won't be updating until someone needs it.
     
  15. Offline

    dequis

    Hi! I need an update to 1.1R5!

    Code:
    2012-03-06 04:00:25 [SEVERE] Could not load 'plugins/SafeVoid.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/entity/EntityListener
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:147)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/entity/EntityListener
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at me.Jaryl.SafeVoid.SafeVoid.<init>(SafeVoid.java:17)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
            ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.entity.EntityListener
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 27 more
     
  16. Offline

    mrciku

    Fixed, not tested though.
     
  17. Offline

    RICh_KING

  18. Offline

    Savoie

    can you please put the source code on github ? thanks :D
     
  19. Offline

    mrciku

    If you want... But it is the most simplest code of all. Just follows the OnEntityDamage listener, checks for damagecause is void and makes the block using world.getblock(POS).setType(ID).

    If you still want the source, just reply yes to this and hold on as sec, coz I'm still getting a hold of Github :)
     
  20. Offline

    Savoie

    yes please :D
     
  21. Offline

    mrciku

    alright hold on.

    Savoie Link as at the first post, at the bottom.
     
  22. Offline

    pom32

    Can you make it so when player fall in to the void they are instead tped to y 256 (x and z are Random in a configurable radius) and fall down to their death
     

Share This Page