Filled Fence Barrier

Discussion in 'Archived: Plugin Requests' started by PhillyCheezsteak, Nov 18, 2014.

Thread Status:
Not open for further replies.
  1. Plugin category: Admin Tools

    Suggested name: Fence Barrier

    What I want: Nether Brick Fences would act like barriers. What I mean by this is players and mobs cannot jump or fly over fences, no matter of the Y axis number.

    Example: Say if a nether brick fence is at the Y axis of 50 and a player is flying at a Y axis of 200. They cannot fly over it or get past the fence.

    This would work for Nether brick fences of all shapes.

    Note: Does not need to work on fence gates, just fences

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: Permission to pass over nether brick fences (default to op).

    When I'd like it by: As soon as you can please.



    EDIT: Players can still walk under a nether brick fence.
    Example: If a nether brick fence is at the Y axis of 20, and a player's Y axis is 10, they can still walk under it
     
  2. Offline

    bwfcwalshy Retired Staff

    PhillyCheezsteak Couldn't someone just be a troll and place a fence at y 1 so no one can do anything.
     
  3. bwfcwalshy I made it so players cannot place any fences. It is also an adventure server.
     
  4. Offline

    bwfcwalshy Retired Staff

  5. bwfcwalshy I also edited it so its only nether brick fences
     
  6. Offline

    connorlinfoot


    UPDATE: Doesn't seem like it's working, looking into it now

    Done and working now!

    Download From my Jenkins: http://ci.connorlinfoot.com:8080/job/EasyBarrier/
    [​IMG]

    GitHub Source: https://github.com/ConnorLinfoot/EasyBarrier/
     
    Shadowwolf97 likes this.
  7. connorlinfoot Thank you so much for making this :D
    The only tweaks I need is for players to still walk under a fence if they are below it and a permission node to bypass the fence.


    EDIT: also can you please make it so it works on animals/mobs also?
     
  8. Offline

    connorlinfoot



    "for players to still walk under a fence if they are below it" - This is already done, should be able to enable it in the config.yml file. (Look's like it's broke for some reason, I'll fix that too)

    "permission node to bypass the fence" - I'll add that shortly.

    "also can you please make it so it works on animals/mobs also?" - This is impossible using only Bukkit, you would have to use NMS code to do this which is not recommended.
     
  9. connorlinfoot Hey thank you for fixing the Y Axis bug, but can you add a permission node to bypass fences please?
     
  10. Offline

    connorlinfoot


    Just added it in the latest build.
     
  11. connorlinfoot what is the permission? Also is it default to op? So if I am op, would i automatically have the permission?

    Never mind I found the permission xD sorry. Thank you so much, it works great!
     
Thread Status:
Not open for further replies.

Share This Page