CraftGuard
CraftGuard is a plugin that easily allows you to control crafting, smelting, using, and various player actions easily through item lists.
- Modules system to allow you to choose which actions you want to check
- Support for inheritance between lists
- Support for metadata
- Automatic whitelist : you can choose to automatically allow or disallow actions on items that aren't in any list
- And much more !
Coming from CraftGuard 1.x ? see the Upgrade page.
New user ? See the First start page.
Links :
Wiki (help) - Issue Tracker - Source code - Downloads
(Video editing in progress, the video should be availiable in few days)
Latest updates & Changelog
This is the first (beta) release of CraftGuard2 ! It adds the following features since Craftguard 1.x :
- New module system : block not only crafting and smelting but also placing, breaking, repairing, and using items, everything highly configurable and with lists !
- Improved list structure
- Added new commands
- Done a lot of optimisation
- Added new configuration option And much more !
What's next ?
Here is a list of the features i plan to add to CraftGuard :
- Brewing module
- "Permission mode" : use permission nodes instead of lists.yml
- Adding custom crafts and smeltings
- (Support for custom guis) ??
- More !
Statistics
Report a bug/A suggestion
Please use our new bug tracker at GitHub. It requires a GitHub account which takes only a minute to create, and is free. Alternatively, you can also post your issues on BukkitDev bug tracker.
Source code
All the source is availiable under GNU General Public License version 3 (GPLv3) here
"ids : This is the main ids list. Each id is under the form 'id' (the id will have ALL metadata like you did id:0:1:2:3:...:16)"
May I request a config that inverts this?
I'm using Spout so I have a LOT of items with a data value for 318 (Flint) - By a lot, I mean roughly 1,500. It'd just be neater if I didn't have to have '-318' before each of the lists of which data's they CAN craft.
@iTwonky
CraftGuard is using SuperPerms api which GroupManager is implenting so it should work. Can you please upload your list file and your permission file to Pastebin and send the links to me ?
Doesn't work with Groupmanager.
It works if allowbydefault: false, which is nice, really nice!
But I don't get it, how do I use the different lists? Is it possible to connect the different lists to different groups? Let say I want the group Miner to craft TNT and Hunters not to. Or is the lists for all groups in my permission plugin?
You must be the fasted updater ever! Now it works but sometimes it keeps giving the "you can't use [item]" message when opening a door. Not a big deal, just FYI.
Regarding permissions I found out there was a syntax error in my lists.yml (I accidentally used tab instead of 4 spaces) and after correcting it everything seems to work. There are some inconsistencies though: for example, having the permission to place torches doesn't work unless you also have the permission to use torches.
This is a great plugin anyway, I'm planning to use it to give my server a RPG system with custom abilities and it's gonna be awesome.
@Wedhro
2.0.3 is here ! Craftguard will not block use action if item in hand is air. Also, now you can again interact with blocks (and villagers) that trigger an action or a GUI (list here, hope i have not forgotten any) regardless of the object you have in hand.
@Wedhro
Yes, I didn't realized but the use module is blocking even when you have nothing in hand and is overlapping place and break modules. I will try to fix that, thanks for your report.
@RyanSayer
I don't exactly understand what you mean. Please check your PMs, I will contact you soon.
What is the point of the modules? No matter what I do in modules the config is still determined by the IDs for example I want to restrict players from crafting enderchests and anvils but i want to let them use both but because they're in ID's I can't do anything
enyall: permission: denyall ids: - '7' - '145' - '130' - '385' - '397' - '397:1' - '397:2' - '397:3' - '397:4' craft: - '7' - '145' - '130' - '385' - '397' - '397:1' - '397:2' - '397:3' - '397:4' use: - '7' - '-145' - '-130' - '385' - '397' - '397:1' - '397:2' - '397:3' - '397:4' break: - '7' - '-145' - '130' - '385' - '397' - '397:1' - '397:2' - '397:3' - '397:4' place: - '7' - '-145' - '130' - '385' - '397' - '397:1' - '397:2' - '397:3' - '397:4'
It still doesn't work. Maybe it's an issue with Permissions Bukkit, I could try with something else later.
In the meantime I'll report an awkward behavior: with all modules activated and no interaction allowed, right-clicking chests, workbenches, doors etc. is denied ("you can't use [item in hand]"); it only works if holding no items in hand. With villagers it doesn't work at all, even with no item in hand the plugin says "you can't use air".
@Wedhro
Hello, First, thanks for reporting this bug. I figured it out, it was a problem with ids which were only in module lists. A new release fixing this bug, CraftGuard 2.0.2, has been released but is awaiting approval. You can download it from here : http://dl.dropbox.com/u/8524268/CraftGuard/r2.0.2/CraftGuard.jar
Thanks for your interest about CraftGuard and don't hesitate to ask again if you have more questions.
It doesn't seem to work with Permissions Bukkit.
In config.yml I set "allowedbydefault" to false, then I tried this simple lists.yml:
Then I used this permissions:
The result is I can't do anything (as expected) but I can't also place or break torches (id 50) despite the permission craftguard.default should let me do it; I checked, I actually have that permission, it just doesn't work.
@MCFUser5585029
I mean it is not dependant on spout. I don't know how spout items work so I don't support restricting spout items atm, sorry.
"Got rid of Spout" when it says that, do you mean that it isn't dependant on spout? Or no longer supports restricting spout items?
@blackaciddevil
It's planned for CraftGuard 2.0 -> link
Looking forward to this plugin! Keep up the good work. One question, will the anvil be included like the furnace?
Hello everyone. I'm sorry again about being late to release the new version, but I don't have much free time and aditionally i'm still reshaping the plugin to extend it to other types of actions like using items, crafting blocks, brewing, and much more. Therefore, I'm trying different code structures and finding the best one will take time. However, i'm hoping to make a release about the 17-18 november (since i can only code during weekends). Stay tuned, and thanks for keeping using CraftGuard !
@TriGinTy
This depends of the preventiveallow value. If it's set to true, when an item is not listed in any list, everyone can craft it, but if it's set to false, when an item is not listed in any list, no one will be able to craft it.
So if not listed everyone can craft it? or is other way around?
make an update please <3
Pas de problème, j'ai le temps ;-)
No problem, I've the time ;-)