[INACTIVE][SEC] SimpleBuildHeight v1.1 - Min + Max Heights (multiworld + permissions) [860]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, May 30, 2011.

  1. Offline

    captainawesome7

    SimpleBuildHeight - Block Building + Placing Based on Block Height
    Version: 1.2
    SimpleBuildHeight is a very easy to use and straightforward plugin. All you have to do is edit the config file to show which world has which limits, and if you want a player to bypass that limit, you can give them the dynamic bypass node.

    Features:
    • Set A Maximum Build Height
    • Set A Maximum Break Height
    • Set A Minimum Build Height
    • Set A Minimum Break Height
    • ^All of the above have custom messages, with variable and color support^
    • Multi-World Compatible
    • Permissions
    Configuration + Use:

    Config+Use (open)

    File:
    A file called config.txt will be created in /plugins/SimpleBuildHeight/. When you open up the file it will look like this:
    Code:
    # This file is for SimpleBuildHeight
    # To change the height that people are allowed to build/place blocks on, edit the two lines below
    creative-max-break=999
    creative-min-break=998
    creative-max-build=999
    creative-min-build=0
    # To use this multiworld, just make min 0 and max 999
    
    # Build alerts, messgaes sent when the player builds too high or low:
    # Colors are supported with &a-f/1-9
    # You can put %id for the block id interacted with
    # You can put %name for the block interacted with
    # You can put %world for the world name the player is in
    # Building too high message below:
    HighBuildMsg=&cYou cannot place blocks that high!
    # Building too low message below:
    LowBuildMsg=&cYou cannot place blocks that low!
    # Breaking too high message below:
    HighBreakMsg=&cYou cannot break blocks that high!
    # Building too low message below:
    LowBreakMsg=&cYou cannot break blocks that low!
    
    Multi-World:
    To add a world that is called WORLD, with a max build of 100, a max break of 90, a min build of 50, and a min break of 40, just add this:
    Code:
    WORLD-max-build=100
    WORLD-max-break-90
    WORLD-min-build=50
    WORLD-min-break-40
    Messages:
    For the messages, just edit the ones given, its pretty straight forward.
    Permissions:
    Format:
    sbh.action.height.worldname
    All nodes:
    sbh.build.low.WORLD
    sbh.build.high.WORLD
    sbh.break.high.WORLD
    sbh.break.low.WORLD

    Downloads:
    The source code is included in the .jar (/com/awesomevilleserver/sbh/)

    Planned Changes
    None so far :)

    Changelog:
    Version 1.2
    • I forgot to add config options for build/break, all good now :D
    • Redo your config again :/
    Version 1.1
    • You MUST redo your config because:
    • Added custom messages with variables and colors
    • New permission nodes
    Version 1.0
    • Release
    [​IMG] To me to support my plugins :)
     
    kimme92, JWhy, Monkah and 1 other person like this.
  2. Offline

    Nazerb

    Thanks for this.
     
  3. Offline

    kahlilnc

    So with this you can go over the limit.
     
  4. Offline

    captainawesome7

    @kahlilnc no, it just blocks placement/breaking if it is outside the limits set. It doesn't change the default build limit.
     
  5. Offline

    Monkah

    Can you make it so SOME blocks are allowed but the rest aren't? I'd like torches to be placed. Maybe ladders. Nothing else though.


    TL;DR: Block whitelist

    @captainawesome7

    Can you make it so SOME blocks are allowed but the rest aren't? I'd like torches to be placed. Maybe ladders. Nothing else though.


    TL;DR: Block whitelist

    shit double post

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  6. Offline

    Nazerb

    Another suggestion would be that you can split between block place and block destroy on the separate heights. Or so that some people can build and only some people can mine.

    Edit: and maybe custom messages? And also the different permissions for, Above-build, above-destroy, below-build and below-destroy.
     
  7. Offline

    captainawesome7

    @Nazerb That can definitely be done by the next release.
     
  8. Offline

    Monkah

    Will block-whitelist be in by next release?
     
  9. Offline

    captainawesome7

    @Monkah No. I can add that next time :/
     
  10. Offline

    Nazerb

    Thanks again.
     
  11. Offline

    Nazerb

    Any idea when its gonna be updated? Can you add it to the update checker thing?
     
  12. Offline

    captainawesome7

    @Nazerb Later today

    @Nazerb There u go, 1.1
    I'm going to change something probably within the hour, look for 1.2 soon

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    Nazerb likes this.
  13. Offline

    Nazerb

    Works nicely as long as i have all the worlds in the file. Can the permsison be: sbh.build.low.*?

     
  14. Offline

    Epidemic

    Very nice Plugin!
    Love it and please don't stop supporting this :)
    I've always wished a Plugin like this and it's going like a good oiled Clockwork :)

    greets
    Epic
     
  15. Offline

    Epidemic

    Now i found something. I don't know if it's a bug or not. I'm using Build 820 so not the RB. Everything is working fine, also does SimpleBuild. It doesn't give me Console-Errors.
    But anyway, i can't build higher than 127 ?
    I'm using Permissions v3.1.4 and as said, everything is working fine. My World is exactly called SolarGod. And if I use the Permissions sbh.build.low.SolarGod etc..... i can't build higher than 127. I also tried sbh.build.low.solargod in the Permissions. But still. I can't place blocks over 127 :(
    I'm using Multiverse v1.2.7 so i have Multiworlds. I also tried to add all Multiworlds to the Permissions and to the Config from SimpleBuildHeight, but it doesn't do anything nor does it give me any Console-Errors. Only if i write the world wrognly it gives me a console error, jsut for the info.

    I really don't know what i have to do :(

    Greets

    Epic
     
  16. Offline

    ChickenFighter

    Im just getting this error:
    Code:
    2011-06-07 19:09:12 [SEVERE] Could not pass event BLOCK_BREAK to SimpleBuildHeight
    java.lang.NumberFormatException: For input string: "[SimpleBuildHeight] Error while reading config.txt!"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at com.awesomevilleserver.sbh.SBHBL.onBlockBreak(SBHBL.java:65)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:475)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:462)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    What can i do?
    Minecraft version: 1.6.6
    Bukkit version: 818
     
  17. Offline

    Epidemic

    Can you build higher than 127 ?
    I've had this error too. The Problem was, that i have written the name of the World (level-name in server.properties) wrong. Please Check this case and also check the permissions.

    greets
     
  18. Offline

    ChickenFighter

    Ok, i checked everything... but i still cant build higher than 127 :(
     
    Ginpigous likes this.
  19. Offline

    Epidemic

    Did you get the error away or is it sill showing up in the console ?
    Do you have other Plugins like i've listed 1 to 3 posts before ?
     
  20. Offline

    captainawesome7

    Dude, wtf are you even talking about? This is to restrict the build height, not to be able to build higher than 127...

    ^

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  21. Offline

    Epidemic

    LOL ?! So did i really unterstand the description so wrong ?^^?
    I'm so sorry :(
    But a plugin to modifie the real BuildHeight would be really nice, xD

    Greets

    Epic(Fail), xD
     
  22. Offline

    OZ4RK

    So, if I understand correctly, you cannot change anything about the build height outside of the default height? I'm sorry but unless you want a tiny town, then this is useless. I want skyscrapers that exceed into the heavens!
     
  23. Offline

    captainawesome7

    It isn't useless, if you don't want people digging into the void than this is a pretty easy solution. Also, I could work on a version that lets you extend the maximum build height, but it wouldn't actually be real building. It would be when you right click a block face it puts the item you have in your hand down, because I'm pretty sure you can't extend the default minecraft build height.
     
  24. Offline

    FOOD

    how will you use the ladders if you can't place it on anything but Torches :confused:
     
  25. Offline

    captainawesome7

    I think he meant for digging deep shafts
     
  26. Offline

    OZ4RK

    Thank you for understanding. It is not useless, just not what I was hoping for. Maybe we can someday find a way to extend build height without lapsing with the depth. :)
     
  27. Offline

    xlilcasper

    Any chance you will make this work in regions instead of just by world? Either your own set region or linked with world guard regions?
     
  28. Offline

    captainawesome7

    No
     
  29. Offline

    Splaat

    I would love to have this on my server but for some reason it won't work.

    I'm sure the setup is correct, so it has to be that I'm using CB860.
    When will it work on 860?
     
  30. Offline

    captainawesome7

    Do you understand what this plugin is meant to do? (Not meant to make build height higher than original MC restrictions)
     

Share This Page