Inactive [SEC] CustomBlockRestriction v1.4.2 - Total control over block placement and breaking [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Randy Schouten, May 2, 2011.

  1. Offline

    Randy Schouten

    CustomBlockControl - Total control over block placement and breaking
    Version: v1.4.2

    Did you even want to restrict blocks that are not pre-defined in the plugin?
    Then this plugin is for you!

    Type whatever block you wish to restrict in the config file, and CustomBlockRestriction will automatically make a permission node for it.

    Features:
    • Permissions enabled
    • Restrict any block and/or item you want
    • Automatically creates a permission node
    Download:

    http://dl.dropbox.com/u/2485556/CustomBlockRestriction.rar
    http://dl.dropbox.com/u/2485556/CustomBlockRestriction.zip

    Check the new config file before switching over to v1.4!

    How to install:
    Just copy paste the contents of the .rar file to your plugins folder.

    How to use:
    Type whatever block you want in the config.yml file in the same way as they are already in there.
    That means 4 spaces, then a dash, then another space, then your block or item.

    That block will then be restricted to everyone on the server except "*" groups.
    The permissions nodes look as following:
    Code:
    cbr.destroy.[config material name]
    cbr.place.[config material name]
    cbr.reload
    Give the reload permission to admins and the likes to give them permission to reload.

    Changelog:
    • v1.4.2
      • Now works again (bug fixes etc)
    • v1.4.1
      • Fixed "/cbr" giving an error
      • Fixed gold placement not detecting
    • v1.4
      • Cleaned up code to make it a lot more lightweight
      • Added the /cbr reload command
      • Added break restrictions
    • v1.3
      • Automatically reloads the config file
    • v1.2.1
      • Added lots of items for which I didn't make a simplified name
      • Fixed directory name
    • v1.2
      • Fixed additional permissions, everything should be fine now
    • v1.1
      • Fixed permissions not working correctly
    • v1.o
      • Initial release
    Todo:

    • Damage values
    • Crafting restriction
    • Item use restriction
    If you liked this plugin and want more plugins from me: Donate!
     
  2. Offline

    coolgames30

    Good Plugin, Thanks for fixing permissions. Really helpful as I could not stop the use of bukets.
     
  3. Offline

    captainawesome7

    Yeah this plugin is awesome.
     
  4. Offline

    Randy Schouten

    Fixed the link, didn't work for some reason.

    Please update to v1.1 :)

    Updated to v1.2.

    Every permission should work now.

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

    Divermax

    how do we type the material name do i type the Data value (item id [iron block = 42]). Cool plugin
     
  6. Offline

    Randy Schouten

    Just type the name of the block or item you want to stop from being placed.
    I added a code that you can do multiple options for certain blocks.

    For instance, if you want to block Lapis Lazuli, you can either type:
    -lapis
    -lapislazuli
    or
    -lapis_lazuli
     
  7. Offline

    thedjshow

    Could you make this plugin works with multiworlds =)
     
  8. Offline

    Randy Schouten

    Well, Permission works with multiworlds, so it should work with CBR as well.

    Just give the permission nodes in the other permission config file and it should work just fine.
     
  9. Offline

    thedjshow

    That is true. my bad ^^
     
  10. Hi, what's with the Redstone torch, how do i add it to permissions and the config?
     
  11. Offline

    Randy Schouten

    My bad, it seems I forgot that one...

    Use "redstone_torch_off" for now, that should work.
    I will re-check the whole material list, because it seems I missed a few more...
    Come back in about 30-45 minutes, should have an update out then, if you prefer that.

    Release CBR v1.2.1
    -Added lots of items I missed while making the plugin
    -Fixed directory name (was CustomBucketRestriction, the old name) - Please make sure to copy paste the config.yml to it's new folder!

    EDIT: Uploaded wrong file, working one is up now.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  12. Thank you very much! :D
     
  13. Offline

    noddyrules

    Awesome plugin!
     
  14. Offline

    Adamki11s

    Hey randy, nice plugin :p As for your question for reloading the config, just create a function outside of on enable which loads the config. Call this function on onEnable() and when ever a player types the reload command :D
     
  15. Offline

    Randy Schouten

    Released v1.3

    The config reloads automatically now!
     
  16. Offline

    zachoooo

    How would I do a monster spawner?
     
  17. Offline

    Randy Schouten

    "Spawner" should work :)
     
  18. Offline

    GoldenX

    Is it possible to prevent a group to craft an item ? If not, are you able to do it ?
     
  19. Offline

    Randy Schouten

    Mmmm...
    I'll see if that's possible a bit later today.
     
  20. Offline

    GoldenX

    Ok, thank :)
     
  21. Offline

    IceColdKillaPL

    It would be nice if block destruction (e.g ores) was also able to be restricted.
     
  22. Offline

    Kuja_Diartua

    Anyway to restrict items usage? For example restriction to use items pickaxes and axes?
     
  23. Offline

    Nazerb

    818? So you put the blocks you want to restrict in the permissions? Its not clear Can you do the damage id like a certain colour wool?
     
  24. Offline

    The24man

    Working on b818?
     
  25. Offline

    Randy Schouten

    Update:
    v1.4 Cleaned up code to make it a lot more lightweight
    Added the /cbr reload command
    Added break restrictions

    I'll see what I can do about damage values and item usage.
    And crafting as well, but I don't think that'll be possible...
     
  26. Offline

    Tickety86

    Iv got a idea maybe you could make a option so with permission like cbr.obey.(worldname) you could just restrict what block they cant break in that WORLD only? With a config file?
     
  27. Offline

    Randy Schouten

    This plugin uses Permissions, and you can set permissions per world, so it basically does that already. :p
    Or I misunderstand you...
     
  28. Offline

    Weltall 7

    this plugin doesn't want to work for me... :(
    it throws an exception when it's loaded by craftbukkit:
    Code:
    java.lang.NullPointerException
            at randy.cr.crBlockListener.firstload(crBlockListener.java:41)
            at randy.cr.cr.onEnable(cr.java:47)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
     
  29. Offline

    Randy Schouten

    That's probably because the "destroy" branch is empty / doesn't exist, correct?
    I've learned a few new things to prevent errors like this, but type something random in the empty branch for now. (Still do it in the correct way tho.)
     
  30. Offline

    Weltall 7

    Thank you, my config.yml file was empty, which was the problem :rolleyes:
    sorry for annoying you uselessly ;)
     

Share This Page