[MECH/RPG] CraftGroup v0.3.1 - Prevent crafting of specific items and blocks [1000]

Discussion in 'Inactive/Unsupported Plugins' started by FrozenBrain, Jul 10, 2011.

  1. Offline

    FrozenBrain

    CraftGroup - Prevent crafting of specific items and blocks
    Version: v0.3.1
    CraftBukkit Build: 1000

    CraftGroup lets you assign so-called CraftGroups to the players of your server via Permissions. Those CraftGroups can be used to prevent crafting, smelting, using, placing or breaking of specific items and blocks. This is propably most useful for RPG servers.

    How to use:
    Show Spoiler

    Download the plugin and drop it in your plugins folder. After the first run, BukkitContrib will be downloaded (if it's not installed already) and a file called "config.yml" will be created inside the plugins/CraftGroup directory.

    You can now create new CraftGroups by simply adding a new node to this file.

    Example:
    Code:
    version: 13
    
    global-blacklist:
        break:
    # Don't break TNT
        - -TNT
        craft:
    # Don't craft orange wool
        - -WOOL:1
        use:
    # Don't use golden apples
        - -GOLDEN_APPLE
        place:
    Blaster:
        break:
        craft:
    # Even though the global-blacklist prevents everyone from crafting TNT,
    # we can whitelist it here again.
        - TNT
        use:
        place:
    Note: The 'use' rules are quite buggy. That's not my fault, CraftBukkit fails at this point. Maybe I'll find a workaround soon.

    As you can see, you can use either the name or the id of the item or block. If you want to prevent someone from crafting, placing, breaking or using something, put a "-" in front of the item (this blacklists the item). You can also whitelist an item by not putting a "-" there. This overwrites the blacklist rules.

    After setting up the CraftGroups, open up your Permissions configuration files and assign the CraftGroups to your groups or players by giving them the
    Code:
    craftgroup.group.GROUPNAME
    permission (replace GROUPNAME with the actual name of the CraftGroup).

    Remember that the CraftGroups and the "craftgroup.group.GROUPNAME" permission are case-sensitive!

    Permissions:
    PermissionNeeded to...
    craftgroup.addUse /cg add
    craftgroup.removeUse /cg remove
    craftgroup.listUse /cg list
    craftgroup.reloadUse /cg reload
    craftgroup.bypassBypass all restrictions
    craftgroup.group.GROUPNAMEAssign a CraftGroup (replace GROUPNAME with the name of the CraftGroup)


    Commands:
    CommandDescriptionUsage
    /cg addAdd an item or block to a group/cg add <list> <allow/deny> <type> <item>
    /cg remove <list> <allow/deny> <type> <item>Remove an item or block from a group/cg remove <list> <item>
    /cg listShow all lists or items in a group/cg list [list ] [type/*] [page]
    /cg reloadReload the configuration file/cg reload

    You can also use /craftgroup instead of /cg.

    Features:
    • Prevent crafting, smelting, using, placing or breaking of items and blocks
    • Assign CraftGroups to players and groups via Permissions
    • Multi-World (not with Permissions 2)
    • Ingame-Editing of CraftGroups
    • bypass-permission for Admins
    • Global Black-/Whitelist
    • Support for data values
    • Support for ItemCraft

    Download CraftGroup-dev (.jar; Minecraft 1.8; Spout)
    Download CraftGroup v0.3.1 (.jar)
    Source on GitHub
    [​IMG]

    Changelog:
    Version 0.3.1
    • Fixed 2 NPEs
    Version 0.3.0
    • Support for data values
    • Support for ItemCraft (requires testing)
    Show Spoiler
    Version 0.2.2
    • Fixed a problem with the different permission types
    Version 0.2.1
    • Fixed global-blacklist
    Version 0.2.0
    • Added support for permissions 2 and groupmanager (untested)
    • You can now prevent people from placing, destroying and using items/blocks
    Version 0.1.2
    • Forgot that HashMaps are case-sensitive
    Version 0.1.1
    • Never try casting an integer to a string!
    Version 0.1
    • Initial release
     
    Nomanoclass likes this.
  2. Offline

    FrozenBrain

    No, you don't need it.
     
  3. Offline

    killacalli

    Im getting the error:
    "04:45:31 [SEVERE] Could not pass event CUSTOM_EVENT to CraftGroup
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObj
    ect(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    at de.frozenbrain.CraftGroup.cgPlugin.mergeGroups(cgPlugin.java:116)
    at de.frozenbrain.CraftGroup.cgPlugin.canCraft(cgPlugin.java:132)
    at de.frozenbrain.CraftGroup.Listener.cgInventoryListener.onInventoryCra..."
    I'm using PermissionsEx 1.12... could you add support for PEX... then again I don't think it's really hard to switch bettween PEX and Permissions3x
     
  4. Offline

    p000ison

    Yes only support for Permissions 3.
    Pls add other... ;)
     
  5. Offline

    Flenix

    I was one of the ones who messaged, you never replied.......

    At least someone is making a working version now :)

    Theres been a plugin around for ages that does that, lets users only give themselves certain items.

    Would it be possible to have some sort of config that lets us reverse this, so the items on the list are the only ones they CAN craft?
    Or a simpler way, would it work for us to just make a config like this:

    Code:
     - *
     - -46
    Which (whyever you'd want to) would mean users could ONLY create TNT (Blacklisting everything with the *, then taking away TNT)

    (TNT was just the first block ID that came to my head)

    EDIT: Sorry just realised i've posted 3 times in a row, sorry! :p

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

    Moomoofishcakes

    Okay so I want to use this for my multiworld server, I have a ArtGallary world where you can spawn items and make pixel art but I don't want people to spawn themselves diamond or gold and then leave that world and sell it in the main world. I need help!
    Heres my config file:
    Code:
    global-blacklist:
    - TNT
    Artist:
    - 256
    - 257
    - 258
    - 259
    - 260
    - 261
    - 262
    - 263
    - 264
    - 265
    - 266
    - 267
    - 268
    - 269
    - 270
    - 271
    - 272
    - 273
    - 274
    - 275
    - 276
    - 277
    - 278
    - 279
    - 280
    - 281
    - 282
    - 283
    - 284
    - 285
    - 286
    - 287
    - 288
    - 289
    - 290
    - 291
    - 292
    - 293
    - 294
    - 295
    - 296
    - 297
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 310
    - 311
    - 312
    - 313
    - 314
    - 315
    - 316
    - 317
    - 318
    - 319
    - 320
    - 321
    - 322
    - 323
    - 324
    - 325
    - 326
    - 327
    - 328
    - 329
    - 330
    - 331
    - 332
    - 333
    - 334
    - 335
    - 336
    - 337
    - 338
    - 338
    - 339
    - 340
    - 341
    - 342
    - 343
    - 344
    - 345
    - 346
    - 347
    - 348
    - 349
    - 350
    - 351
    - 352
    - 353
    - 354
    - 355
    - 356
    - 357
    - 2256
    - 2257
    - 6
    - 7
    - 8
    - 10
    - 11
    - 9
    - 13
    - 14
    - 15
    - 16
    - 17
    - 18
    - 19
    - 20
    - 21
    - 22
    - 23
    - 24
    - 25
    - 26
    - 27
    - 28
    - 30
    - 37
    - 38
    - 39
    - 40
    - 41
    - 42
    - 43
    - 44
    - 45
    - 46
    - 47
    - 48
    - 49
    - 50
    - 51
    - 52
    - 53
    - 54
    - 55
    - 56
    - 57
    - 58
    - 59
    - 60
    - 61
    - 62
    - 63
    - 64
    - 65
    - 66
    - 67
    - 68
    - 69
    - 70
    - 71
    - 72
    - 73
    - 74
    - 75
    - 76
    - 77
    - 78
    - 79
    - 80
    - 81
    - 82
    - 83
    - 84
    - 85
    - 86
    - 87
    - 88
    - 89
    - 90
    - 91
    - 92
    - 93
    - 94
    - 95
    
    and here's my permission group for that world:
    Code:
    groups:
        Artist:
            default: true
            info:
                prefix: '&5[&aA&9r&bt&ci&ds&et&5]&a'
                suffix: ''
                build: true
                rank: 1
            inheritance:
            - Builder
            permissions:
            - nocheat.speedhack
            - nocheat.moving
            - nocheat.fakesneak
            - nocheat.fastswim
            - nocheat.airbuild
            - nocheat.bedteleport
            - nocheat.bogusitems
            - essentials.kit
            - essentials.kit.*
            - essentials.warp
            - essentials.item
            - essentials.give
            - essentials.i
            - essentials.time
            - essentials.clearinventory
            - essentials.stack
            - craftgroup.group.Artist
    
     
  7. Offline

    FrozenBrain

    CraftGroup does not prevent people from cheating things, but from crafting them.


    Current todo list:
    - Support for data values
    - Support for Permissions 2 and GroupManager
    - Prevent people from placing, breaking and using things
    - Whitelist

    I think it should be ready today or tomorrow (more likely tomorrow).
     
  8. Offline

    Flenix


    Even better than limited item spawning: Look at a plugin callede MultiInv - seperate inventories for different worlds. Just have a seperate one for your art world and they can spawn whatever they like without effecting the economy at all :) We have something similar, a game world where they can build maps and then blow eachother up.. theres chests full of stacks of diamonds and they can't bring them to the main world (where they're very hard to get thanks to a levelling plugin)
    Anyway, item spawning isn't related to this plugin, this is for crafting only.. there are plenty of spawning blacklists already out there.


    Anyway, @FrozenBrain - I know saying "its broke" doesn't solve the issue.. but i'm not getting any errors or anything - its like its not even installed. Using 0.1.2, CB 953, Permissions 3.1.6 (spent 6 hours upgrading from 2.x JUST to use this plugin...)

    *EDIT* I got it working - I still had the config set up from LockCraft and assumed it'd work - its just a slightly different layout (you don't use an indent) so I just had to remove the 4 spaces infront of each line... 947 lines... kill me...
     
  9. Offline

    FrozenBrain

    Send me your serverlog (maybe you've just missed something), your permissions configs and the config of CraftGroup please.
     
  10. Offline

    Blacky

    Hi I've got a questions,

    why this plugin doesn't work for me?
    I use the recommend build, and this in permissions 3
    Code:
            - craftgroup.group.test
    My config is the default config I only changed 'myawesomegroup' to 'test' without '
     
  11. Offline

    FrozenBrain

    What exactly does not work?
     
  12. Offline

    Blacky

    The Group
    test
    Code:
            - craftgroup.group.test
    can do the same as every other group
     
  13. Offline

    FrozenBrain

    Did you try crafting stone and it worked even though you are in the test group? Or what have you tried doing?
     
  14. Offline

    Blacky

    Oh my fault i didn't understand the text so good sorry I tryed to place it sorry.
     
  15. Offline

    Flenix

    Hey, i'm not sure if I've set it up wrong or its just not working or what...

    Anyway, I have a group called "all" which is in the default permissions group - it restricts players from crafting anything at all.
    I then have a whole load of other groups, which restrict most items but not all, for example a group that only allows weapons construction.

    I have a player these nodes:
    Code:
            - -craftgroup.group.all
            - craftgroup.group.weapons
    but they still can't craft any weapons.

    Any idea what I'm doing wrong? here is my very long config, i'm using latest craftgroup and CB 953.
    Code:
    global-blacklist:
    - 2
    
    garage:
    - 1
    - 20
    - 24
    - 44
    - 46
    - 50
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    generalresources:
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    mineral:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    weapons:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    decorations:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    food:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    farming:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    woodwork:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    tools:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    
    all:
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
     
  16. Offline

    BlueEidechse

    [SEVERE] Could not pass event CUSTOM_EVENT to CraftGroup
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    at de.frozenbrain.CraftGroup.cgPlugin.mergeGroups(cgPlugin.java:116)
    at de.frozenbrain.CraftGroup.cgPlugin.canCraft(cgPlugin.java:132)
    at de.frozenbrain.CraftGroup.Listener.cgInventoryListener.onInventoryCraft(cgInventoryListener.java:26)
    at org.bukkitcontrib.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$84.execute(JavaPluginLoader.java:834)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at org.bukkitcontrib.ContribNetServerHandler.a(ContribNetServerHandler.java:228)
    at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    a
    [01:15:26] >> t net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)



    Hello, I, been realy happy to find this awesome plugin. But if I tried I could craft everything...
    in the Serverlog shows this errors after crafting something to test.

    The craftgroups are written like in the example with item Ids, and the permissions are given.
    I installed the Buckit contrip is on the server and installed by the users... this ones who dint have installed it get kicked.
    For Permissions I use the actual Essentials Groupmanager.

    If somebody could help, would make me lucky :-p

    Thx
     
  17. Offline

    Flenix

    Theres your problem, you need to use the actual Permissions plugin, which wont work if you have GroupManager installed.

    Also, you wont need the BukkitContrib client mod for this - thats only for things like capes etc, and even then its optional.
     
  18. Offline

    alfskan

    is it support MOD?

    like a ID 29892?
     
  19. I think if you read this post HERE you'll find its on his 'to-do' list (i.e support for data values)
     
  20. Offline

    BlueEidechse

    Thank you Flenix :)

    ... damn bad message for me... think I can´t use it together with Permission EX?
    Does anybody know another way to give some groups only access to craft some specific Items?
    For the Permissiongroups I wanna use permissions EX or the Groupmanager, is there a way to do?
    Need it for an RPG Server for creating a smith, a baker and so on...
     
  21. Offline

    FrozenBrain

    If you give them the craftgroup.group.weapons permission, the plugin prevents them from crafting everything defined in that group. It does not whitelist those items, it blacklists them.


    I'm going to finish v0.2 today which should work together with all the permissions plugins.
     
  22. Offline

    Flenix

    I know, and in my config that is how its set up... For example he was trying to make TNT, which is not blacklisted for weapons, but he couldn't.

    *EDIT* OK, I found the problem, and I think it is in your plugin.
    As I said, by default everyone gets:
    Code:
            - craftgroup.group.all
    Then, when I give them a "job" I give them
    Code:
            - -craftgroup.group.all
    Which SHOULD then remove that as a node from the player, and then remove the restriction. I always assumed negated nodes were a part of Permissions, but when I give that node to a player they're still restricted. I tried this myself: I deopped myself and made myself a standard player, so i'd have the node to restrict me. I then added the negated node, and I was still restricted.

    Basically, either the negated node isn't working, or the normal node is just overriding it. Any chance you could fix?

    (A work around for now would be to use multigroup and make a group with just the normal node in, then remove that when they get a job, but obviously thats kind of tedious to do every time a player joins..)
     
  23. Offline

    FrozenBrain

    Send me your full config then (both, Permissions and CraftGroups config).

    Version 0.2.0 is out. Old configs will be converted into the new format automatically. I haven't had much time for testing it so there may be some bugs. Please report any, if you find one.

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

    Flenix

    I've changed it all now, but here is the player's setup in question.

    Permissions Groups (open)

    Code:
     Default:
        Citizen:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - iConomy.payment
            - iConomy.list
            - iConomy.rank
            - essentials.compass
            - essentials.msg
            - essentials.afk
            - essentials.rules
            - essentials.motd
            - essentials.me
            - essentials.list
            - essentials.mail.send
            - essentials.whois
            - essentials.kit
            - essentials.home
            - war.player
            - lwc.protect
            - essentials.sethome
            - stargate.use
            - essentials.signs.heal.use
            - essentials.signs.mail.use
            - essentials.signs.disposal.use
            - essentials.kit.tools
            - worldedit.history.undo
            - lc.level.mining
            - lc.level.woodcutting
            - lc.level.excavation
            - lc.level.swimming
            - lc.level.explosives
            - lc.level.forgery
            - lc.level.scavenger
            - lc.level.prayer
            - lc.level.combat
            - lc.level.farming
            - lc.level.defence
            - lc.unlevel.range
            - lc.shout
            - jail.canbestickjailed
            - jail.openchest
            - realtools.hands
            - archers.arrow
            - war.warp
            - hungry.player.*
            - bog.*
            - bog.fence.fence
            - classign.Use
    - craftgroup.group.all
            - ChestShop.shop.buy
            - ChestShop.shop.sell
            - towny.wild.*
    
        Warrior:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Citizen
            permissions:
            - simpleweapon.sword.*
            - simpleweapon.sword.gold
            - simpleweapon.sword.diamond
            - simplearmor.*
    
        Fire Warrior:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Warrior
            permissions:
            - firelord.sword
            - firelord.armor
         Inferno Bloodknight:
            default: false
            info:
                prefix: '&4'
                suffix: ''
                build: true
            inheritance:
            - Fire Warrior
    
    
        Evil:
            permissions:
            inheritance:
            default: false
    
        Weapons:
            permissions:
            - craftgroup.group.weapons
            inheritance:
            default: false
    
    


    Permissions User (open)

    Code:
        UnforgivenOne:
            groups:
            - Inferno Bloodknight
            - Weapons
            - Evil
    

    CraftGroup Config (open)

    Code:
    global-blacklist:
    - 2
    
    garage:
    - 1
    - 20
    - 24
    - 44
    - 46
    - 50
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    generalresources:
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    mineral:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    weapons:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    decorations:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    food:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    farming:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    woodwork:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    
    tools:
    - 1
    - 20
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    
    all:
    - 24
    - 44
    - 45
    - 23
    - 25
    - 27
    - 28
    - 66
    - 69
    - 70
    - 72
    - 76
    - 77
    - 84
    - 325
    - 328
    - 333
    - 342
    - 343
    - 356
    - 41
    - 42
    - 57
    - 265
    - 266
    - 272
    - 267
    - 283
    - 276
    - 298
    - 299
    - 300
    - 301
    - 302
    - 303
    - 304
    - 305
    - 306
    - 307
    - 308
    - 309
    - 314
    - 315
    - 316
    - 317
    - 310
    - 311
    - 312
    - 313
    - 261
    - 262
    - 46
    - 22
    - 47
    - 80
    - 82
    - 321
    - 323
    - 324
    - 330
    - 336
    - 281
    - 282
    - 297
    - 320
    - 322
    - 350
    - 353
    - 354
    - 357
    - 91
    - 339
    - 340
    - 50
    - 53
    - 54
    - 58
    - 61
    - 65
    - 67
    - 85
    - 355
    - 273
    - 274
    - 275
    - 291
    - 256
    - 257
    - 258
    - 292
    - 284
    - 285
    - 286
    - 294
    - 277
    - 278
    - 279
    - 293
    - 259
    - 345
    - 346
    - 347
    



    Just some background on my weird permissions setup:
    We have a server with both Good and Evil, then 7 races with various upgrades. The races are made neutrally, then get a name depending on which side, so "Inferno Bloodnight" is identical to a Fire Warrior but evil. It makes it easier for me, as I can update both factions at the same time.
    I've incorperated the full track of the player just so you can see no permissions nodes are interfering anywhere along the line.
    The group "Evil" might seem pointless, but we have a plugin that detects players by group, so we can make it detect all Evil players.

    Obviously we also use Multigroup, which might be where the problem lies, because they have a node and a negated node at the same time, but its never been a problem in any other plugin.

    If you still need the full permissions info I can send you it, but theoretically everything you need should be right there.
     
  25. Offline

    m5k

    Doesn't prevent anything. Is version 2 broken or is it my config?
    edit: i can't place a the blocked items. I can, however craft and use them. So at least something works >_<
    Code:
    version: 13
    global-blacklist:
        break:
        craft:
        - -DIAMOND_PICKAXE
        - -DIAMOND_SWORD
        - -DIAMOND_SPADE
        - -DIAMOND_AXE
        - -GOLD_SWORD
        - -GOLD_SPADE
        - -GOLD_PICKAXE
        - -GOLD_AXE
        - -DIAMOND_HOE
        - -GOLD_HOE
        - -DIAMOND_HELMET
        - -DIAMOND_CHESTPLATE
        - -DIAMOND_LEGGINGS
        - -DIAMOND_BOOTS
        - -GOLD_HELMET
        - -GOLD_CHESTPLATE
        - -GOLD_LEGGINGS
        - -GOLD_BOOTS
        - -BOW
        - -MUSHROOM_SOUP
        - -BREAD
        - -GRILLED_PORK
        - -COOKED_FISH
        - -CAKE
        - -COOKIE
        - -SUGAR
        use:
        - -FISHING_ROD
        place:
        - -OBSIDIAN
        - -PISTON_STICKY_BASE
        - -PISTON_BASE
    
     
  26. Offline

    FrozenBrain

    This config is working fine for me. Maybe BukkitContrib is not working properly? Is it installed correctly and are there any errors in your server log?
    That you can still use the FISHING_ROD is a bug in craftbukkit (I recently opened a thread in the 'Plugin Developement' forum about that bug). I'll have to look for a way to fix this tomorrow, sorry.

    I'm going to look into that tomorrow. For now, try updateing to the newest version of CraftGroups.
     
  27. Offline

    m5k

    Do I have to add the - craftgroup.group.global-blacklist permission to everyone? I've made an exact copy of it and renamed the group, added the permission to the group I was testing with and it works fine. Kinda weird.
    Running cb953 with only 3 plugins: permissions 3.1.6, bukkitcontrib 0.1.5, craftgroup v0.2.0.
     
  28. Offline

    FrozenBrain

    No, not really. It should work without adding the permission, as it's working great for me. Would you send me your full Permissions config pls (I have to reproduce the error in order to be able to fix the bug)?

    @Flenix Yep, this bug should be fixed in 0.2.0. I failed at writing the code for Permissions in 0.1.x :D

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

    p000ison

    I used your config:
    version: 13

    global-blacklist:
    break:
    # Don't break TNT
    - -TNT
    craft:
    # Don't craft TNT
    - -TNT
    use:
    # Don't use golden apples
    - -GOLDEN_APPLE
    place:
    Testgroup:
    break:
    craft:
    # Even though the global-blacklist prevents everyone from crafting TNT,
    # we can whitelist it here again.
    - TNT
    use:
    place:
    Testgroup1:
    break:
    craft:
    use:
    place:
    And gave the group this Permission:

    craftgroup.group.Testgroup


    But every group can still craft everything.
    But testgroup shoult can craft tnt but the second not or?
    Is your profile pic from terraria? xD

    Sry 4 dopplepost but bukkit.org is so buggy today.
     
  30. Offline

    killacalli

    I get this error whenever someone joins, if i remove the bukkitcontrib and craftgroup plugins i dont get the error. I'm using craftbukkit 953... I have a feeling it might be something to do with bukkitcontrib but im no expert


    21:53:08 [SEVERE] java.lang.NoSuchFieldException: perm
    21:53:08 [SEVERE] at java.lang.Class.getDeclaredField(Unknown Source)
    21:53:08 [SEVERE] at org.bukkitcontrib.player.ContribCraftPlayer.<init>(Co
    ntribCraftPlayer.java:87)
    21:53:08 [SEVERE] at org.bukkitcontrib.player.ContribCraftPlayer.updateBuk
    kitEntity(ContribCraftPlayer.java:587)
    21:53:08 [SEVERE] at org.bukkitcontrib.ContribPlayerListener.onPlayerJoin(
    ContribPlayerListener.java:27)
    21:53:08 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(Jav
    aPluginLoader.java:244)
    21:53:08 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(Regist
    eredListener.java:58)
    21:53:08 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
    ePluginManager.java:321)
    21:53:08 [SEVERE] at net.minecraft.server.ServerConfigurationManager.c(Ser
    verConfigurationManager.java:124)
    21:53:08 [SEVERE] at net.minecraft.server.NetLoginHandler.b(NetLoginHandle
    r.java:97)
    21:53:08 [SEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandle
    r.java:74)
    21:53:08 [SEVERE] at net.minecraft.server.Packet1Login.a(SourceFile:43)
    21:53:08 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    21:53:08 [SEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandle
    r.java:40)
    21:53:08 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :91)
    21:53:08 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:451)
    21:53:08 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    21:53:08 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
     
  31. Offline

    FrozenBrain

    My fault, sorry. v0.2.1 is up.

    Yes, BukkitContrib is causing that error. CraftGroup should work fine though.
     

Share This Page