[ADMN/SEC] BanRecipe - Prevent a crafting recipe from being used - Moved to BukkitDev

Discussion in 'Inactive/Unsupported Plugins' started by Relick, Aug 18, 2011.

  1. Offline

    Relick

    This project has been moved to BukkitDev. Please use that page instead of this one!
    http://dev.bukkit.org/server-mods/banrecipe/




    BanRecipe

    Version: v0.4

    BanRecipe is a plugin designed to stop certain people from using certain recipes. It is designed as an improvement over other plugins such as NoCraft, as this plugin allows for permission group specific banning.

    Dependencies:
    Spout Server Plugin - Required (It doesn't require your users to have the launcher, don't worry)
    SuperPerms Manager - Not required, but greatly improves functionality

    Features:
    * Two modes, Permissions mode and Op mode.
    * Permissions mode allows you to block recipes per group, or even user!
    * Op mode allows you to block everyone from recipes, but Ops are exempt!
    * Does not affect the ability to have or spawn the item, only craft it. Very useful for RP servers with group specific traits.
    * Customisable message sent to user trying to craft.
    * SuperPerms support.

    Make sure to read up on how to use the plugin before you download!

    <Edit by Moderator: Redacted bit url>
    Direct Download


    Show Spoiler
    By default when you first start up the plugin, you will be placed in this mode.

    In permissions mode, there is a permission node laid out like this:
    Code:
    banrecipe.<id>: true/false
    
    Replace <id> with the item id number.

    When someone crafts something, the plugin checks if the permission for the crafted item is set to true for that player. If they don't have it, or it is set as false, it stops them from crafting, if they do it allows them to.

    Due to the sheer amount of items, it is recommended that you use the following permission:
    Code:
    banrecipe.*: true
    
    Then block items by using this permission after the above one (in this example it is id 46 for tnt):
    Code:
    banrecipe.46: false
    
    So it should now look like:
    Code:
    banrecipe.*: true
    banrecipe.46: false
    
    The user can then craft everything, except for tnt.




    Show Spoiler
    If you don't have a SuperPerms manager, or you don't require the extra functionality, you can set UsePermissions as false to switch to this mode.
    In this mode, Ops can craft everything.
    Everyone else will be blocked from crafting the ids set in config.yml
    An example of blocked tnt and flint and steel is provided when you first startup the plugin, however it is explained here:
    Code:
    ids:
        '46': true
    
    config:
        BanMessage: You cannot craft that!
        UsePermissions: false
    
    This will ban TNT, and anyone trying to craft it will recieve a message saying 'You cannot craft that!'. Ops will not be blocked from crafting TNT.




    Show Spoiler
    Code:
    ids:
        '46': true
    
    config:
        BanMessage: You cannot craft that!
        UsePermissions: false
    
    ids: Contains the ids that are blocked (op mode only)
    BanMessage: The message sent to the player if the item they are trying to craft is blocked. Remove this line entirely if you don't want a message displayed.
    UsePermissions: true/false. True will put the plugin in Permissions mode, false will put it in Op mode. Anything else will break the plugin! Removing this line will reset the config to the default settings.




    Planned Features:
    * Remove Spout dependency.
    * Furnace support

    Changelog:

    Version 0.4
    * Changed from Permissions 3 to SuperPerms

    Version 0.3
    * (Hopefully) fixed permissions mode.

    Version 0.2
    * Added some extra error handlers. It is highly recommended you update to this version.


    Show Spoiler
    Version 0.1
    * Initial release


    Special Thanks:


    @Afforess and the rest of the @SpoutDev - Greatly helped with this project.
    Everyone else who helped in the thread I posted regarding help :p
     
    Last edited by a moderator: Feb 21, 2017
    Rellac likes this.
  2. Offline

    Relick

    Anyway, I've moved it to BukkitDev now. I am not having much luck with the furnace unfortunately D:
    v0.3 is uploaded on the BukkitDev page for those who want Perms 3. v0.4 is also on there.
    Thanks for the support guys :)

    http://dev.bukkit.org/server-mods/banrecipe/
     
  3. Offline

    alfskan

    Yeah I have to stay at 0.3 atm.

    They`re not support any bridges either.:'(
     
  4. Offline

    Relick

    Ah well. I know Heroes is made by a good lot of developers, so you should see SuperPerms soon. Also it's not difficult, even for a new modder, so I'd say next version.
     
  5. Bugs everywhere. I set the right permissions and it wouldn't let anybody craft anything.
     
  6. Offline

    Quezax

    does this work on 1.8.1 with CB 1185?
     
  7. Offline

    Relick

    If you have Permissions 3, use version 0.3. If you are using a Superperms manager, I have no idea what you are on about, because I thoroughly tested it.

    Yes.
     
  8. Offline

    Anavirn

    Thanks for your nice plugin !
    But I need to know how to ban recipe for colored wools (like id 35:15) in permissions bukkit ?


    Code:
    ...
                banrecipe.35:1: true
                banrecipe.35:2: true
    ...
    When I do this it don't work :(
    How can I do ?

    Thanks in advance ;)
     
  9. Offline

    BR_

    Good job! I'll send users of NoCraft over here :)
     
  10. Offline

    Relick

    At the moment that is slightly lower on the list than some other things I'm adding, however I will get this in in a few versions time.

    Thanks! Just thought I'll point out that you spelt it as BadRecipe on the NoCraft page instead of BanRecipe, also as confusing as it is, Relick and Zantom07 are both actually me :p. Relick was taken on Curse and Minecraft (annoyingly by people who haven't used the accounts at all) so I had to go with my other alias.
     
  11. Offline

    BR_

    Fixed :)
     
  12. Offline

    Relick

    Thanks :)
     
  13. Offline

    Olat

  14. Offline

    bobacadodl

    @Olat
    Permissions don't work like that... you cant have a colon in a permission node.
    What you need to do is in the banrecipe config file set all of those item ids to TRUE
    Ex:
    '267': true
    '257': true
    '258': true
    and so on... for all those items you want only specials to use

    Then... in permissions:
    give members this:

    - -banrecipe.256
    - -banrecipe.257
    - -banrecipe.258
    - banrecipe.*
    Thatll give members all of the items except special ones
     
  15. Offline

    p000ison

    Do you continue the development?
    There are so many devs who stoppet it with such plugins....
     
  16. Offline

    Relick

    I'm working on a better version at the moment, but it will only be posted on BukkitDev (link at top of OP).
     
  17. Offline

    p000ison

    yeah thanks. Then Ill use yours. (Data values would be great^^)
     
  18. Offline

    rooligan

    I get the error that it isn't up to date? is it because my java isn't high enough?
     
  19. Offline

    DarklightPvP

    Could you try and make it non-Spout? I would use this, but I cannot use it because of the ridiculous file limits my host has :/
     
  20. Offline

    trout1212

    Commands?
     
  21. Offline

    md_5

    Long time no see Relick. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     

Share This Page