Inactive [ADMN/SEC] Incraftible v0.10 - Superperms-based Crafting [Spout] [1.1-R3]

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

  1. Offline

    taufiqkh

    Incraftible
    Version: 0.10

    Download the plugin
    Source code for the devs
    Development build for the risk-takers on the bleeding edge (for 1.2)

    Provides permissions-based control of crafting for items and item groups. Runs on the Bukkit permissions API (Superperms), tested with bPermissions and PermissionsEx. It's Incraftible!

    Features:
    • Fine-grained control over all known Bukkit materials
    • Configurable message*
    Requirements

    • Incraftible uses server-side Spout for its inventory crafting events as it allows for a simple, straightforward event listener.
    Compatibility

    Incraftible has been tested with the following:
    • CraftBukkit recommended build #1.1 RB-3
    Other users have found Superperms and Permissions to sit happily side-by-side, but there have been reports of problems with the Permissions * wildcard. I have found issues when using PermissionsBukkit with the latest releases of Bukkit, and it is currently unsupported.

    Configuration:

    Configuration of who can craft what is done via Bukkit permissions. All standard Bukkit materials are supported, and crafting of all standard items is enabled by default. You can disallow crafting of an item by settings its incraftible.craft node to false. For convenience, several permission nodes have been created that control permissions on a number of objects. These nodes are set in the standard permissions.yml file that Bukkit uses:

    A full list of permission nodes can be found at https://github.com/taufiqkh/Incraftible/wiki/Permissions.

    As an example, the following will create a permission node that disallows all tools greater than stone and all armor greater than leather:
    Code:
    incraftible.restrict.tools:
        description: Restrict to basic tools and armor.
        default: true
        children:
            incraftible.craft.tools.iron.*: false
            incraftible.craft.tools.gold.*: false
            incraftible.craft.tools.diamond.*: false
            incraftible.craft.armor.iron.*: false
            incraftible.craft.armor.gold.*: false
            incraftible.craft.armor.diamond.*: false
    Configuration of the plugin itself is via plugins/Incraftible/config.yml. Default behaviour is controlled by setting craft.default, which accepts the following values:
    • none disallow all crafting by default, using permissions to allow specific objects
    • all allow all crafting by default, using permissions to disallow specific objects
    The disallow message is configurable:

    Code:
    messages:
        disallowed: "You are not allowed to craft %s"
    Changelog:

    0.10
    Older versions (open)

    0.9
    0.8
    0.7
    0.6:
    0.5:
    0.4:


    Todo:
    • Add control over remaining material data values.
    • Add material bundle entries for data values.
    • Investigate difficulty of adding control to furnace events.
    • Add more meaningful headers for config files.
    • Add support for purely id-based permissions.
    * Just the one, for now.
     
    fluxboy8 likes this.
  2. Offline

    Flenix

    Yeah, its like communism. in theory, it works.. but it doesn't :(

    Anyway, I just did a quick test - removing Permissions (the normal old plugin) means I can no longer craft. So although theres no errors.. they must still be clashing somehow. I'm gonna try removing the * on the Permissions side, and see what I can do then.
     
  3. Offline

    Aza24

    So how do I set it up easily to allow everything (like normal) and just block crafting of dispensers?
     
  4. Offline

    markus18

    How this plugin work? I have been trying to this plugin works with permissions 3.16, the mysql version. But i can't get any works of this plugin. I tried to add those permisions to block the craft of tools for example, I haven't got no more permissions or op.

    I have been trying those permission string
    incraftible.craft.tools.*: false​

    incraftible.craft.tools.*:false​

    incraftible.craft.tools.*:false​

    incraftible.craft.tools.*.false​
     
  5. Offline

    Kenshin

    Any chance to have working with ID ? like incraftible.craft.tools.iron.42: false
    If you don"t, I can't use it with ItemCraft
    Thanks
     
  6. Offline

    taufiqkh

    This plugin uses Superperms, the inbuilt Bukkit API, not the now-inactive Permissions plugin. Where are you setting permissions? They should be set in permissions.yml in the top level of your minecraft directory. See PermissionsBukkit and the Permissions FAQ for details on Superperms.

    Hmm, that looks like an interesting plugin. Unfortunately it looks like it's not as easy as changing a single line to use id instead of name. Let me think about how to do it.

    Edit: Fixed links. I should learn how to do internal links properly some time.
     
  7. Offline

    markus18

    Ok then i can't use this plugin with this plugin of permissions no? http://forums.bukkit.org/threads/in...sions-3-1-6-the-plugin-of-tomorrow-935.18430/

    I have been trying to use permissions with mysql creating the group in permissions.yml for example with the sample of incraftible.restrict.tools I have created this group but I put default: false, and all perfect i can craft tools but when i add the permission to mysql (incraftible.restrict.tools) to the user and reload the permissions, i can craft tools too. Any method to this plugin work with permissions 3.16?

    The mysql is very important for me because i have got a roleplay server and the registration is with the web
     
  8. @markus18
    You can with a little trick:
    Change to PEX (Permissions EX), it's the new version of Permissions 3!
    Works fine with your old P3 Nodes, after a few commands and steps (show the wiki) AND it supports SuperPerms (PermissionsBukkit) :)
     
  9. Offline

    t3hk0d3

    ORLY?
     
    Flenix likes this.
  10. Offline

    taufiqkh

    As you can see from that link, Permissions is inactive. If I may expand on @t3hk0d3, PermissionsEx is a complete and separate plugin to Permissions, not simply a new version. It appears to have a lot of the functionality you've mentioned, as well as a compatibility layer for Permissions.
     
  11. @taufiqkh
    I think it doesn't work with furnaces, am i right?
    I disallowed to craft grilled_pork, stone, dyes and many more. Every recipe i want to craft inside inventory or workbench is blocked or allowed correct, only recipes with the furnace don't work as they should.
     
  12. Offline

    taufiqkh

    That's correct, it doesn't currently work with furnaces.
     
  13. Do you plan to add it soon?
     
  14. Offline

    taufiqkh

    I'll take a look at how hard it will be to implement. Added to the TODO list.
     
  15. Offline

    Kenshin

    Any news for data values plz ? It's the only reason I have to use Bukkitcontrib ...
    Thanks !
     
  16. Offline

    taufiqkh

    Are there specific data values you're interested in? I've done some prototyping with ink and wool but it doesn't yet pass all tests.
     
  17. Offline

    Kenshin

    Thanks for your response. No, I searching for ID, to be compatible with Itemcraft. Like incraftible.craft.453: false

    Thanks
     
  18. Offline

    Iliath

    May you insert to the break and place permissions special datavalures? Something like -block.break.17 for diasabel breaking wood...a little idea. Or can sombody show me a plugin that suport this function?
     
  19. Offline

    Quezax

    How is it coming with datavalues? We use wool colors for different materials, so I would liek to split up who can craft what colors. Also we split wood and stone crafting so slabs datavalues would be another one that we would looking to seperate.

    Thanks, this looks to be the most admin friend recipe control mod. Any plans to do custom recipes as part of this mod?
     
  20. Offline

    Flenix

    How can I set it up so a player cannot craft something, but then a group that inherits from that group can craft certain things?

    for example:
    Player 1 is in the group Citizen. Citizens cannot craft anything.
    I then add Player 1 to the group of Builder, which inherits from Citizen. Builder should be able to craft Stone Slabs (ID 44), but they cannot.
    This is the setup I want (my perms are a LOT more bulky, I've just cut it down to what is relevant)

    Code:
        Citizen:
            default: true
            permissions:
            - -incraftible.craft.*
        Builder:
            permissions:
            - incraftible.craft.stone
            - incraftible.craft.wood
            - incraftible.craft.glass
            - incraftible.craft.sandstone
            - incraftible.craft.step
            - incraftible.craft.brick
            - incraftible.craft.sponge
            inheritence:
                - Citizen
    
    In theory that SHOULD mean the Builder can craft only those items and nothing else, but it doesn't work. Anyone else know how I could do it? Right now each of my 9 jobs is set up like this:
    Code:
    
        Builder:
            permissions:
            - -incraftible.craft.stone_sword
            - -incraftible.craft.iron_sword
            - -incraftible.craft.gold_sword
            - -incraftible.craft.diamond_sword
            - -incraftible.craft.leather_helmet
            - -incraftible.craft.leather_chestplate
            - -incraftible.craft.leather_leggings
            - -incraftible.craft.leather_boots
            - -incraftible.craft.chainmail_helmet
            - -incraftible.craft.chainmail_chestplate
            - -incraftible.craft.chainmail_leggings
            - -incraftible.craft.chainmail_boots
            - -incraftible.craft.iron_helmet
            - -incraftible.craft.iron_chestplate
            - -incraftible.craft.iron_leggings
            - -incraftible.craft.iron_boots
            - -incraftible.craft.gold_helmet
            - -incraftible.craft.gold_chestplate
            - -incraftible.craft.gold_leggings
            - -incraftible.craft.gold_boots
            - -incraftible.craft.diamond_helmet
            - -incraftible.craft.diamond_chestplate
            - -incraftible.craft.diamond_leggings
            - -incraftible.craft.diamond_boots
            - -incraftible.craft.bow
            - -incraftible.craft.arrow
            - -incraftible.craft.tnt
            - -incraftible.craft.jack_o_lantern
            - -incraftible.craft.paper
            - -incraftible.craft.book
            - -incraftible.craft.sugar
            - -incraftible.craft.map
            - -incraftible.craft.shears
            - -incraftible.craft.dispenser
            - -incraftible.craft.note_block
            - -incraftible.craft.powered_rail
            - -incraftible.craft.detector_rail
            - -incraftible.craft.rails
            - -incraftible.craft.lever
            - -incraftible.craft.stone_plate
            - -incraftible.craft.wood_plate
            - -incraftible.craft.redstone_torch_on
            - -incraftible.craft.stone_button
            - -incraftible.craft.jukebox
            - -incraftible.craft.bucket
            - -incraftible.craft.minecart
            - -incraftible.craft.boat
            - -incraftible.craft.storage_minecart
            - -incraftible.craft.powered_minecart
            - -incraftible.craft.diode
            - -incraftible.craft.wood_stairs
            - -incraftible.craft.chest
            - -incraftible.craft.workbench
            - -incraftible.craft.furnace
            - -incraftible.craft.ladder
            - -incraftible.craft.cobblestone_stairs
            - -incraftible.craft.fence
            - -incraftible.craft.bed
            - -incraftible.craft.bowl
            - -incraftible.craft.mushroom_soup
            - -incraftible.craft.bread
            - -incraftible.craft.grilled_pork
            - -incraftible.craft.golden_apple
            - -incraftible.craft.cooked_fish
            - -incraftible.craft.sugar
            - -incraftible.craft.cookie
            - -incraftible.craft.wood_shovel
            - -incraftible.craft.wood_pickaxe
            - -incraftible.craft.wood_axe
            - -incraftible.craft.stone_shovel
            - -incraftible.craft.stone_pickaxe
            - -incraftible.craft.stone_axe
            - -incraftible.craft.diamond_spade
            - -incraftible.craft.diamond_pickaxe
            - -incraftible.craft.diamond_axe
            - -incraftible.craft.gold_shovel
            - -incraftible.craft.gold_pickaxe
            - -incraftible.craft.gold_axe
            - -incraftible.craft.iron_shovel
            - -incraftible.craft.iron_pickaxe
            - -incraftible.craft.iron_axe
            - -incraftible.craft.wood_hoe
            - -incraftible.craft.stone_shovel
            - -incraftible.craft.iron_hoe
            - -incraftible.craft.diamond_hoe
            - -incraftible.craft.gold_hoe
            - -incraftible.craft.flint_and_steel
            - -incraftible.craft.compass
            - -incraftible.craft.fishing_rod
            - -incraftible.craft.watch
            - -incraftible.craft.map
            - -incraftible.craft.shears
            - -incraftible.craft.lapiz_block
            - -incraftible.craft.bookshelf
            - -incraftible.craft.snow_block
            - -incraftible.craft.clay
            - -incraftible.craft.painting
            - -incraftible.craft.sign
            - -incraftible.craft.wood_door
            - -incraftible.craft.iron_door
            - -incraftible.craft.clay_brick
            - incraftible.craft.stone
            - incraftible.craft.wood
            - incraftible.craft.glass
            - incraftible.craft.sandstone
            - incraftible.craft.step
            - incraftible.craft.brick
            - incraftible.craft.sponge
    
    Which looks horrible, is hard to manage and if a player doesn't have a job they can craft anything.

    NOTE: I use a lot of multigrouping for a few reasons, which is why I need inheritence. The jobs themselves don't inherit anything, but other groups inherit from Citizen.

    Help?
     
  21. Offline

    taufiqkh

    @Iliath You might want to try the plugin request page, not sure how effective it will be, though.

    @Quezax Wool and dye data values have been added in 1.8, colours are textual, eg. incraftible.craft.wool.lime.

    @Flenix I assume those permissions are via a plugin that Superperms? There may be a bug with the incraftible.craft.* permission; you may have better luck using incraftible.craft.standard to remove permissions - it controls crafting of all standard Minecraft crafting, ie. anything you'd be able to craft in vanilla Minecraft. Also, you've spelt "inheritance" wrong in your first Builder code example.
     
  22. Offline

    Flenix

    OK, I'll try that. I assume I could do .sponge as well, its the only "custom" block our players can craft. 2 permissions are better than 200 :)
    Also, the spelling doesn't matter in those examples, I wrote them specifically for this. But thanks for pointing it out :)
     
  23. Offline

    Quezax

    Is there support for Step Types (block 43)? I wanted to split out the cobblestone, and wood from the brick types (including 1.8's new ones)
     
  24. Offline

    Guarana_SUI

    Awesome plugin.
    Can u add also "use" permissions?
    kind of:
    incraftible.use.fire
     
  25. Offline

    taufiqkh

    @Quezax Support for step types is planned but not yet implemented.

    @Guarana_sui Sorry, "use" permissions are currently out of scope for this plugin.
     
  26. This plugin has that duping glitch too.
     
  27. Offline

    Quezax

    Ok think I found a dupe issue, crafting a lever without permissions yielded a stone hoe with no material loss. and furnace is now producing a stone shovel. this started happening after crafted stone tools successfully. Furnace failure yielded nothing before. restart doesn't fix it. but crafting things without stone doesn't produced duped tools.

    I am having issues blocking everything then adding only specific things to a group. I am removing .standard as you recommended ealier, then adding, and the only things tha are working are breaking logs down to planks and sticks. Tool permissions are also working for tools.stone.* and tools.wood.*. No errors on console.

    This is all on the mod dev version and CB1185.
    Any help would be appreciated.
     
  28. Offline

    taufiqkh

    Regarding the dupe and furnace issue, I'm not quite sure how that would happen. All this plugin does is cancel the craft event - it doesn't mess with recipes, doesn't do anything with furnaces, doesn't create items that normally wouldn't be created. If Incraftible is removed from the plugins directory and the server restarted, does the dupe issue still exist?

    I can't tell you anything useful without knowing what permissions you've specified. Can you also please list all other plugins (and their versions) that are on the server, and the version of Spout.
     
  29. Okay. I removed your plugin and the dupe issue disappeared. Happens with all the plugins that disable some type of crafting. So its either a bukkit or spout bug.
     
  30. Offline

    taufiqkh

    Ok, I'll take a look when I get a chance. Perhaps there're some unexpected interactions that are occurring under the hood. If it is a Spout/CraftBukkit bug then I might still be able to fix it with a patch to either of those, or at the very least I should be able to raise a bug with them that contains some useful information for the developers.

    Did you just remove Incraftible or did you remove Spout as well? I'll need to be able to reproduce it myself before I can fix it, so I'll need the following:
    - List of all other plugins plugins used, and their versions (including Spout).
    - CraftBukkit version number
    - permissions for incraftible
     
  31. Offline

    Quezax

    I have had the exact same issue with Craftgroup as I had with Incraftible for duplicate items.
    Spout verions 381 (1.0.6) CB 1185
    other plugins - worldedit 4.6, worldguard 5.2.2, herochat 4.10.2, mcmmo 1.1.15, bartersign 1.2, BigBrother 1.11, BorderGuard 4.20, CommandBook 1.5.2, creaturebox 0.77a, FalseBookBlock,
    FalseBook 0.88, Lockette 1.4.4, Mineral Vein 1.3.2, PermissionsEx 1.14, Runecraft 2.8.1, Spout 1.0.6, BookWorm 1.7, Modifyworld (PEX 1.14), Permissions (PEX Bridge), CreativeGates 1.3.0

    Here is the permission file (using PEX v1.14)
    Code:
        Commoner:
            default: true
            permissions:
            - commandbook.say.me
            - commandbook.return
            - bartersigns.use
            - commandbook.rules
            - mcmmo.commands.party
            - mcmmo.chat.partychat
            - mcmmo.motd
            - mcmmo.skills.acrobatics
            - mcmmo.skills.excavation
            - commandbook.motd
            - commandbook.msg
            - commandbook.who
            - modifyworld.*
            - mcmmo.commands.whois
            - creativegates.use
            - incraftible.craft.tools.wood.*
            - incraftible.craft.tools.stone.*
            - incraftible.craft.storage_minecart
            - incraftible.craft.stick
            - incraftible.craft.wood
            - incraftible.craft.furnace
            - incraftible.craft.chest
            - incraftible.craft.torch
            - incraftible.craft.sandstone
            - incraftible.craft.cobblestone_stairs
            - incraftible.craft.workbench
            - incraftible.craft.furnace
            - incraftible.craft.snow_block
            - incraftible.craft.clay
            - incraftible.craft.snow_ball
            - incraftible.craft.clay_ball
            - falsebook.blocks.readbooks
            - falsebook.blocks.hiddenswitch
            - falsebook.blocks.lightswitch.use
            inheritance:
            - nocraft
            options:
                rank: '999'
        Fighter:
            prefix: '&c[Fighter]'
            permissions:
            - mcmmo.ability.axes
            - mcmmo.ability.swords
            - mcmmo.skills.archery
            - mcmmo.skills.swords
            - mcmmo.skills.axes
            - mcmmo.skills.repair
            - incraftible.craft.tools.iron.*
            - incraftible.craft.armor.iron.*
            - incraftible.craft.tools.gold.*
            - incraftible.craft.armor.gold.*
            - incraftible.craft.armor.chainmail.*
            - incraftible.craft.gold_block
            - incraftible.craft.iron_block
            - incraftible.craft.compass
            - incraftible.craft.minecart
            - incraftible.craft.bucket
            - incraftible.craft.iron_door
            - incraftible.craft.shears
            - incraftible.craft.rails
            inheritance:
            - Commoner
        Woodsman:
            prefix: '&b[Woodsman]'
            permissions:
            - mcmmo.ability.woodcutting
            - mcmmo.ability.axes
            - mcmmo.skills.woodcutting
            - mcmmo.skills.axes
            - incraftible.craft.wood_stairs
            - incraftible.craft.wooden_door
            - incraftible.craft.ladder
            - incraftible.craft.trap_door
            - incraftible.craft.bowl
            - incraftible.craft.sign
            - incraftible.craft.boat
            - incraftible.craft.fence
            - incraftible.craft.step
            - incraftible.craft.iron_axe
            - incraftible.craft.fishing_rod
            - incraftible.craft.bed
            - incraftible.craft.bow
            - incraftible.craft.arrow
            - incraftible.craft.wool.lime
            - incraftible.craft.wool.purple
            - incraftible.craft.wool.light_blue
            - modifyworld.*
            inheritance:
            - Commoner
        Monk:
            prefix: '&b[Monk]'
            permissions:
            - mcmmo.ability.herbalism
            - mcmmo.ability.unarmed
            - mcmmo.skills.herbalism
            - mcmmo.skills.unarmed
            - incraftible.craft.lapis_block
            - incraftible.craft.bookshelf
            - incraftible.craft.wool.brown
            - incraftible.craft.wool.black
            - incraftible.craft.wool.red
            - incraftible.craft.wool.blue
            - incraftible.craft.wool.green
            - incraftible.craft.wool.light_grey
            - incraftible.craft.wool.grey
            - incraftible.craft.jack_o_lantern
            - incraftible.craft.painting
            - incraftible.craft.paper
            - incraftible.craft.book
            - incraftible.craft.dye.*
            - incraftible.craft.map
            - incraftible.craft.glowstone
            - incraftible.craft.tnt
            - bookworm.create
            - bookworm.write.own
            - bookworm.copy.own
            - bookworm.remove.own
            - bookworm.destroy.own
            - falsebook.blocks.cauldron.use
            inheritance:
            - Commoner
        Tinker:
            prefix: '&b[Tinker]'
            permissions:
            - mcmmo.skills.repair
            - mcmmo.skills.archery
            - incraftible.craft.dispenser
            - incraftible.craft.note_block
            - incraftible.craft.powered_rail
            - incraftible.craft.detector_rail
            - incraftible.craft.lever
            - incraftible.craft.stone_plate
            - incraftible.craft.wood_plate
            - incraftible.craft.redstone_torch_off
            - incraftible.craft.piston_base
            - incraftible.craft.piston_sticky_base
            - incraftible.craft.stone_button
            - incraftible.craft.flint_and_steel
            - incraftible.craft.bow
            - incraftible.craft.arrow
            - incraftible.craft.fishing_rod
            - incraftible.craft.watch
            - incraftible.craft.diode
            - incraftible.craft.iron_spade
            - incraftible.craft.storage_minecart
            - incraftible.craft.powered_minecart
            - incraftible.craft.minecart
            - incraftible.craft.jukebox
            - falsebook.blocks.hiddenswitch.create
            - falsebook.ic.standard
            - falsebook.ic.detection
            - falsebook.blocks.door
            - falsebook.ic.standard
            - falsebook.blocks.lightswitch.create
            inheritance:
            - Commoner
        Explorer:
            prefix: '&b[Explorer]'
            permissions:
            - mcmmo.ability.swords
            - mcmmo.ability.excavation
            - mcmmo.skills.swords
            - mcmmo.skills.taming
            - mcmmo.skills.archery
            - incraftible.craft.jack_o_lantern
            - incraftible.craft.flint_and_steel
            - incraftible.craft.bow
            - incraftible.craft.arrow
            - incraftible.craft.armor.leather.*
            - incraftible.craft.boat
            - incraftible.craft.fishing_rod
            - incraftible.craft.mushroom_soup
            - incraftible.craft.iron_sword
            - incraftible.craft.bed
            - falsebook.cart.*
            - mcmmo.item.chimaerawing
            inheritance:
            - Commoner
        Tradesman:
            prefix: '&b[Tradesman]'
            permissions:
            - mcmmo.ability.excavation
            - mcmmo.ability.herbalism
            - mcmmo.ability.unarmed
            - mcmmo.skills.herbalism
            - mcmmo.skills.unarmed
            - incraftible.craft.glass
            - incraftible.craft.lapis_block
            - incraftible.craft.step
            - incraftible.craft.brick
            - incraftible.craft.bread
            - incraftible.craft.golden_apple
            - incraftible.craft.sugar
            - incraftible.craft.cake
            - incraftible.craft.cookie
            - incraftible.craft.shears
            - incraftible.craft.mushroom_soup
            - incraftible.craft.iron_spade
            - incraftible.craft.iron_hoe
            - incraftible.craft.wool.orange
            - incraftible.craft.wool.magenta
            - incraftible.craft.wool.pink
            - incraftible.craft.wool.yellow
            - incraftible.craft.wool.light_blue
            - incraftible.craft.wool.cyan
            inheritance:
            - Commoner
        nocraft:
            permissions:
            - -incraftible.craft.*
            - -incraftible.craft.standard
            options:
                rank: '1000'
    
    So a user with no groups get the permissions of commoner.
    I was not able to craft a furnace or a chest with this configuration, but all the wood and stone tools tools were working. It successfully blocked iron tools from working. This was only in incraftible.

    To reproduce dup issue, allow stone tools, deny iron tools, craft a stone shovel successfully, then craft an iron shovel unsuccessfully. The materials will return to the craft table and you will not pickup a iron shovel, but there will spawn a stone shovel in hand. seems to dup the last succesful item crafted on any blocked item. this issue also happens in craftgroup-dev.

    UPDATE:
    Afforess confirmed this is a spout issue fixed in dev version 390+
     

Share This Page