AntiBuild

About
Simple, efficient, and lightweight plugin that will prevent interaction with blocks until the proper permission is granted. This plugins stops all types of block interaction and it even stops bucket use and painting interaction. It also sends a customizable message to the player who is denied building rights. Before you say this already exists just look at how lightweight this plugin is compared to some of the others. This is for server owners who need a building prevention plugin that is as lightweight as possible.
What is the advantage of this?
- As a server owner myself I have been looking for a long time to find a plugin that just stops my guests from building until they are promoted to the next rank. The only thing I found for this had so many other options that I did not want or need that it forced me to make my own. For comparison the plugin I was previously using was 400 times larger in file size than AntiBuild. Sure, it did a lot more, but I didn't want any of that other stuff.
Main Features
- Prevents breaking of blocks
- Only allow player to place certain blocks without having to blacklist a bunch of blocks
- Prevents placing of blocks
- Only allow player to break certain blocks without having to blacklist a bunch of blocks
- Prevents the use of flint and steel
- Prevents the use of lava and water buckets
- Prevents all interaction with paintings
- Prevents all interaction with item frames
- Prevents opening chests, furnaces, anvils, beacons, brewing stands, crafting tables, dispensers, enchanting tables, ender chests, and workbenches.
- Blacklist blocks
- Lock/unlock building in worlds with a command
- Simple to use
- Very efficient checks
- Extremely lightweight
Per-Block Permissions
AntiBuild allows you to give permissions to players that only allow them to place or break certain blocks. This is very handy when you only want a player to be able to place/break a few blocks. An example use would be an adventure map where a player is only allowed to break stone, log, coal ore, diamond ore, and iron ore. All you need to do is assign the player the permission node antibuild.break.[ID] and replace the [ID] with the block ID of the block you want them to be able to break. If you want them to be able to place only certain blocks you can give them antibuild.place.[ID] and replace [ID] with the block id of the block you want them to be able to place.
Blacklist
AntiBuild has a built in feature for blacklisting blocks by their Item ID. This is a 100% optional feature and it is disabled by default. To enable it open the config.yml and change the Blacklist-On value from false to true. Once it is enabled any block ID that is listed under Blacklisted-Blocks will be blocked from placing or breaking. If a player has the permission antibuild.blacklist they will be able to bypass the blacklist check completely. If a player has the permission antibuild.blacklist.[Item ID] (example: antibuild.blacklist.7) they will be able to bypass the check for that item ID only.
World Locking
AntiBuild also has a built in feature for locking worlds that you would normally allow players to build in. This is handy for adventure maps, special events, group builds, or any other reason you can think of to temporarily lock a world.
You can lock a world in game by typing /antibuild lock [world name]. Once this is done only people with antibuild.lock.bypass permission will be able to build. All others will be denied building rights. To unlock a world you would type /antibuild unlock [world name] and this will allow everyone to build that would normally have had access to build. To check and see what worlds are currently locked you can type /antibuilt list and this will display the currently locked worlds.
Commands
All commands will work from in game with the proper permission and from the console.
| /antibuild reload | Reload the config. Requires permission: antibuild.reload |
| /antibuild lock [world] | Lock the provided world. Requires permission antibuild.lock |
| /antibuild unlock [world] | Unlock the provided world. Requires permission antibuild.lock |
| /antibuild list | Display currently locked worlds. Requires permission antibuild.lock |
Permissions
Normal Permissions
| Node | Usage |
|---|---|
| antibuild.bypass | Allows the bypass of AntiBuild checks. This is the main permission node that will allow/deny players from interacting. If you don't need any of the other features and just want to allow a player to build/interact give them this permission. |
| antibuild.break | Allows the breaking of blocks |
| antibuild.break.[ID] | Allows the breaking of block with the provided block ID |
| antibuild.break.[ID].[metadata] | Allows the breaking of block with the provided block ID with specific metadata |
| antibuild.place | Allows the placing of blocks |
| antibuild.place.[ID] | Allows the placing of block with the provided block ID |
| antibuild.place.[ID].[metadata] | Allows the placing of block with the provided block ID with specific metadata |
| antibuild.fire | Allows the use of flint and steel |
| antibuild.bucket | Allows the use of all buckets |
| antibuild.bucket.lava | Allows the use of lava buckets ( fill and pour) |
| antibuild.bucket.water | Allows the use of water buckets ( fill and pour) |
| antibuild.painting | Allows interaction with paintings and item frames (break/place) |
| antibuild.interact | Allows interaction with all inventory type blocks. |
| antibuild.anvil | Allows interaction with anvils |
| antibuild.beacon | Allows interaction with beacons |
| antibuild.brewing | Allows interaction with brewing stands |
| antibuild.chest | Allows interaction with chests (including storage minecarts) |
| antibuild.dispenser | Allows interaction with dispensers |
| antibuild.enchanting | Allows interaction with enchanting tables |
| antibuild.enderchest | Allows interaction with ender chests |
| antibuild.furnace | Allows the interaction with furnaces |
| antibuild.hopper | Allows the interaction with hoppers |
| antibuild.workbench | Allows the interaction with crafting benches |
| antibuild.pickupitems | Allows the player to pickup items on the ground |
| antibuild.dropitems | Allows the player to drop items from their inventory |
| antibuild.blacklist.break | Allows the bypass of blacklisted blocks for breaking |
| antibuild.blacklist.break.[ID] | Allows the bypass of blacklisted block with entered Item ID. Example: antibuild.blacklist.break.7 |
| antibuild.blacklist.place | Allows the bypass of blacklisted blocks for placing |
| antibuild.blacklist.place.[ID] | Allows the bypass of blacklisted block with entered Item ID. Example: antibuild.blacklist.place.7 |
Admin Permissions
| Node | Usage |
|---|---|
| antibuild.lock | Allows user access to the lock/unlock/list commands |
| antibuild.lock.bypass | Allows the bypass of locked worlds |
| antibuild.lock.bypass.[world name] | Allows the bypass of locked world with specified name |
| antibuild.reload | Allows access to the reload command |
Configuration
When you first run AntiBuild the plugin will generate a default config.yml and a lockedWorlds.yml. Do not touch the lockedWorlds.yml (lock worlds with in game commands). There are several options in the config.yml. You may not need to change any of them. See the comments in the config.yml file for information on them. The next option is whether or not you want the blacklist to be enabled. If you already have a plugin that blacklists blocks (or you just don't want to use it) leave it set to false and it will not do anything. If you set Blacklist-On to true you can now start to enter item IDs of the blocks you wish to block. This only supports item IDs because it saves a decent amount of time when checking block break/place events with just he ID instead of the name.
See the default config here.
Installation
- Put AntiBuild in your plugin folder
- Start server to generate default config.yml
- Use with the default settings or customize it to your liking and restart or reload the plugin.
Upcoming Features
- Feel free to make a request, but keep in mind this plugin will stay lightweight.
If you have a request please create a ticket here: https://github.com/MutinyCraft/AntiBuild/issues
Need help or just want to chat? Find me on EsperNet on #MutinyDev or #MutinyCraft
-
View User Profile
-
Send Message
Posted Mar 30, 2013@ThoLav
Okay, well what you need to make sure the group does not have antibuild.bypass in the world you want to only allow certain things. The easiest way to do that is to negate that permission completely. Then once you are certain they don't have the bypass permission you can add the permission for each item you want them to be able to place or break. Make sure to also change the config option Per-Block-Permission to true so the plugin knows to check for individual permissions.
In your case you would want these permissions:
In the other worlds just give them antibuild.bypass and they will be able to still break/place anything.
-
View User Profile
-
Send Message
Posted Mar 30, 2013Helloi,
I'm using PEX with mulitworldsupport.
I know how to give permissions per world, but I have no idea how to do it for this plugin.
-
View User Profile
-
Send Message
Posted Mar 30, 2013@ThoLav
You should be able to do that with your permissions plugins as long as it has multiworld support. This would be too complicated for me to add into the plugin when it can already be handled by a permissions plugin.
-
View User Profile
-
Send Message
Posted Mar 30, 2013Hi,
is there a chance to give the rights per world?
We have a World, full with dungeons and chests with items inside. In this world palyer should only be able to break and place vine, ladders, torches and chests. In all other worlds they should be able to place/break anything.
-
View User Profile
-
Send Message
Posted Mar 30, 2013@LordKainzo
Yeah, that looks like a WorldGuard message when someone isn't added to a region. AntiBuild doesn't use a message like that anywhere.
@ThisUsernameIsMine
I have added this and I am just testing it a little further at the moment. I might add a few other things before I release a new version, but I plan to have one out this weekend sometime.
-
View User Profile
-
Send Message
Posted Mar 30, 2013@MutinyCraft
I don't mind to wait but hopefully it can be implemented.
Thanks for the reply! :-)
-
View User Profile
-
Send Message
Posted Mar 30, 2013@MutinyCraft
Hey there...
A few of my users are having very strange issues in our Nether world.
The permissions appear correct but whenever they to break netherrack it gives them an error they dont have permission (but then breaks anyways)
Any thoughts?
edit: It seems this could be a WG issue ... bleh!
-
View User Profile
-
Send Message
Posted Mar 29, 2013@GlabbichRulz
I will see what I can do to add that.
-
View User Profile
-
Send Message
Posted Mar 28, 2013Could you please seperate lava and water buckets?
-
View User Profile
-
Send Message
Posted Mar 26, 2013@ThisUsernameIsMine
It doesn't have this at the moment. I can look at adding this when I get a little free time. As long as it doesn't add any big checks to the plugin I should be able to get this in AntiBuild for you. If you don't mind waiting just let me know you are still interested.
-
View User Profile
-
Send Message
Posted Mar 26, 2013Please add permissions to control dropping and picking up of items.
I currently use NodeGuard but it doesn't work consistent and the project has been abandoned :(
-
View User Profile
-
Send Message
Posted Mar 24, 2013@WUMBO123
If you want to stop a player from crafting don't give them antibuild.workbench. They wont be able to open up the crafting table. You must also make sure they don't have antibuild.bypass or they will bypass all the checks. If you can tell me exactly what you want to do I will tell you what permission nodes you need. It really isn't as complicated as you think it is.
-
View User Profile
-
Send Message
Posted Mar 24, 2013nevermind i am going to delete a rank to fix this problem but if you do know how to allow a person to use a shovel but not be able to craft it please do tell
-
View User Profile
-
Send Message
Posted Mar 24, 2013o my goodness i need help i cant do all these perms and nodes i only want to not allow breaking of one or two blocks so i have to wright down every one other then those two please help me i cant wright these all down
-
View User Profile
-
Send Message
Posted Mar 21, 2013@Apple_columb
I would imagine it would act the same as WorldGuard does.
-
View User Profile
-
Send Message
Posted Mar 21, 2013@MutinyCraft
Would this plugin properly protect portal blocks? Like player placed some block near portal but he doesn't have permission to do it and action canceled but portal block is destroyed. What would happen? WorldGuard would allow to destroy portal block.
-
View User Profile
-
Send Message
Posted Mar 19, 2013AntiBuild v2.3 (awaiting approval)
Generate a new config if you wish to use per-block permission (disabled by default) or you can just add the config option to your existing config. See the default config here.
@RustyDagger
This has been added in v2.3
-
View User Profile
-
Send Message
Posted Mar 19, 2013@RustyDagger
I could look into doing this.
-
View User Profile
-
Send Message
Posted Mar 18, 2013I have a world and i don't want to allow building of houses only mining..
So i have only allowed the player break permissions the issue is they need to be able to build a few things such as torches and ladders
is there any way that i can only allow some blocks to be placed?
with out enabling the blacklist and blacklisting every block except the ones i want them to even that wont work because then they can't break the block..
Maybe add antibuild.place.50 etc
-
View User Profile
-
Send Message
Posted Mar 7, 2013@perotorca
I have no clue what you are talking about. This plugin doesn't do anything with scripts.