BlockProtection Reloaded
BlockProtection
This is a continuation of the BlockProtection plugin by Kanlaki101. A block protection plugin based off of OwnBlocks by cvenomz. BlockProtection will save any block you place down, to prevent other players from breaking it. Only the player who placed the block, anyone on his friends list, or an admin can break the block.
Developers, have suggestions, or would like to help? I welcome any and all help. Join me in IRC, or PM me!
Dependencies
Vault: Vault is required for BlockProtection to work on your server. Vault is used as an API so that BlockProtection can hook into almost every permissions system.
You can get Vault Link.
WorldEdit is Soft Dependencie. Needed for selected region block protection transfer.
You can get WorldEdit Link.
Features:
Block Protection
Every block your players place will be protected in the database.
Block Exclude List
Prevent certain blocks from being protected.
Admin Bypass
Your admins can bypass BlockProtection and break any player's blocks.
Friends System
Allow your players to build with friends! They can add/remove them as needed.
Where do I begin?
Installation:
- Make sure you have Vault installed.
- Drop BlockProtection.jar into your /plugins folder.
- On first load, config.yml, friendslist.yml, and the Database.db will be created.
- Open config.yml and edit it to your liking, then use the /bpreload command.
Permissions:
- bp.admin (Defaults to op) Allows players bypass BlockProtection, add blocks manually, and get the utility tool
- bp.friend (Defaults to true) Allows access to all of the Friends List features
- bp.reload (Defaults to op) Allows admins to reload all settings from the configuration file
- bp.user (Defaults to true) Allow players to use BlockProtection, and view the owner of blocks
- bp.giveblock (Defaults to op) Allows to give block (by Tool (stick by default))
- bp.transfer (Defaults to op) Allows to transfer blocks from WorldEdit selected region
Commands
- /bp [on/off] Toggle BlockProtection on/off, adding on/off is optional.
- /bpadd [playername] Add a player to your friends list
- /bpadmin Toggle BlockProtection bypass on/off
- /bpclear Clears your entire friends list
- /bplist List all players from your friends list
- /bpreload (Will not reload changes to "save-interval". Restart required!) Reloads settings from config.yml
- /bpremove [playername] Remove a player from friends list
- /bptool Gives the player 1 of the "utility tool"
- /bpgive [playername] All blocks will be given to Name player, by using Tool. To disable write /bpgive.
- /bptransfer [playername] After region selected by World edit. This command will transfer protection of selected blocks to [playername]. When no arguments are given the protection of the selected blocks will be removed. You need bp.transfer or bp.admin to do this.
- /bpimport [world] Import's blocks from WatchBlock MySQL. Check config for MySQL connection settings. If there are many blocks in the database please wait.
Suggestions/Help:
Very important: If you want something added or fixed, reply to questions I will ask!
To submit a ticket for help or a suggestion, click the ticket tab on the top of the page. Create a new ticket, and add the appropriate label.

-
View User Profile
-
Send Message
Posted Feb 13, 2013The question is how do I make it MySQL? I just setted it to MySQL. How do I get the little flat files to turn in MySQL? Do you want me to put them in a winrar?
-
View User Profile
-
Send Message
Posted Feb 13, 2013Okay I'll try to use wampserver
-
View User Profile
-
Send Message
Posted Feb 13, 2013@ScrimCraft
You have to setup a MySQL server to let WatchBlock write the flatfile database to. So setup a MySQL server and edit the config of WatchBlock to connect to that server. After that try the /wb-import flat-to-mysql again.
-
View User Profile
-
Send Message
Posted Feb 13, 2013Nevermind that MySQL error that lost connection also happens on 1.4.7
-
View User Profile
-
Send Message
Posted Feb 13, 2013Also, when I go use Watchblock and /wb-import flat-to-mysql it gives me a big error because I'm using 1.4.7. Then I went back to 1.2.5 and that it says MySQL lost connection. I guess I'm screwed?
-
View User Profile
-
Send Message
Posted Feb 13, 2013Nice! just need a little more detail. I go to config of Watchblock and see flatfiles: true, i turned that to false. Does that make it MySQL? And then what do I do? There are also commands like wb-import that says it will import or export. When I run /bpimport it still gives that error.
-
View User Profile
-
Send Message
Posted Feb 13, 2013@eduard500f
After /we set 0 0 - or other.. whrite /bptransfer admin - or your name.
-
View User Profile
-
Send Message
Posted Feb 13, 2013@blackwolf12333
Well i need it for me, because im too lazy to use Worldguard to protect the area. Only just for the Admin. It will be really cool and i will be really thanksfull if you can do it :)
mfg. eduard500f.
-
View User Profile
-
Send Message
Posted Feb 13, 2013@eduard500f
That's right, it is possible to add protection against worldedit, but I find it not needed because if you are a smart admin you don't give worldedit rights to normal players so you don't need protection against it:P
@ScrimCraft
In that case, you use flatfile support from WatchBlock, that means you have to convert it to MySQL first and than configure BlockProtection to import that.
-
View User Profile
-
Send Message
Posted Feb 13, 2013I DO have WatchBlock. It has files that are multiple unlike BlockProtection where it has just 3 DB files. How do I import the thousands of files of Watchblock to BlockProtection so I don't have to reset the map?
-
View User Profile
-
Send Message
Posted Feb 13, 2013Hey,
I really love this Plugin perfect Work! But i found a bug: If i use Worldedit like the command: set blocks etc. then the blocks are not protected.. is it possible to fix it? Just asking. But really, thanks for this Plugin! finally a working "block protection plugin"! Thanks :)
-
View User Profile
-
Send Message
Posted Feb 13, 2013@ScrimCraft
No you don't need a MySQL server, and you also don't have to import. What I understand of your comments is that you haven't used WatchBlock at all, thus you don't need to import anything from WatchBlocks database.
Greetz blackwolf12333
-
View User Profile
-
Send Message
Posted Feb 13, 2013@ScrimCraft
blackwolf12333 - allrady sayed to you. IF YOU DIDNT USE WatchBlock. DONT IMPORT.
This plugin doesn't use MySQL !
-
View User Profile
-
Send Message
Posted Feb 12, 2013when I /bpimport it gives me an error on the console. Just tell me do i NEED a MySQL server? Because I just run my server on my computer
-
View User Profile
-
Send Message
Posted Feb 12, 2013@ScrimCraft
If you don't have WatchBlock data than you don't even need the import... You will not need any knowlegde of MySQL, we did that for you:P
As far as I know you should just run the command and BlockProtection should automatically detect your database and import it. I am not sure about that because I didn't write that part of the code:/
EDIT: There should be some settings in the config, if you don't have them delete the config file and reload the plugin. Once the config options are there you just have to fill in the name of the database, host and username, password and the port on what your MySQL server is running. If you use a vps you should be able to find that data easily.
-
View User Profile
-
Send Message
Posted Feb 12, 2013Okay... here's my problem.
I don't know how to set this up. I know some MySQL and I'm afraid I might need you help. A tutorial would be nice but hear me out.
Can I use wampserver for this process? How do I use /bpimport? Do I create a MySQL server to import the stuff? How do I import? Thank you
-
View User Profile
-
Send Message
Posted Feb 12, 2013I'll look through tutorials so I don't have to bother you guys but if you want to help that would be great!
-
View User Profile
-
Send Message
Posted Feb 11, 2013Added description about WatchBlock MySQL imboprt (if you use file , just use build in WatchBlock transfer to MySQL and after this plugin).
RegionForSale will be added then author will add API. When will be new version released.
Now. Ill make delete ALL block that player Own's by Name
-
View User Profile
-
Send Message
Posted Feb 10, 2013@ScrimCraft
It is possible, the only problem is that I don't know how xD lenivets09 added that and never told anyone how to use it :P
I'll ask him to add that to the description:)
-
View User Profile
-
Send Message
Posted Feb 10, 2013Can you import files like the plugin WatchBlock to this? If so, how?