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.
@Coookiii
Nope, don't restart :)
And is there any way of using this with MySQL? To speed up loading time maybe?
Please Fix!
@MattyQ
Well, I have 0 experience with MySQL and I don't really plan on getting more, but if you can find a developer that want's to add it to my plugin feel free to point him to the github repository.
@blackwolf12333
We currently have about 400 players. Our main world database hovers around 40 megs.
I noticed every time BP saved it was taking so long to write that it was kicking all the players off the server. I got around that by setting it to save only once per day, at a time there are usually no players on.
If you get ambitious, you might want to try adding MySQL support. I was trying WatchBlock's for a short while, but their sql code is pretty inefficient. Overall, yours still appears to be considerably more efficient.
@kevsidney95
I would like to know how many players there are on your server. Because obviously as you noticed there is a limit to how many players there can be on a server with BlockProtection :/
I think im going over to watchblock because blockprotection needs to load an hour to startup and if its saving my server crasht......
@Nick1991420
Were there errors? Because it worked for a couple of versions now, so it shouldn't be broken.
@Coookiii
It is doable, but it probably will cause lag :/
Can you add that the blocks you create with WorldEdit, are automaticly protected aswell, and so you dont have to type /bptransfer [name] everytime?
Friends list is broke, when i add someone to my friends list they can break my blocks right? But when i remove them from my friends list they can still break all the blocks that i place even when i have block protection mode on..... plugin broke :(
I'm loving this plugin. Simple, and easy!
I've just been really cheeky, and posted 3 feature requests.
I'm expecting people to tell be to use GriefPrevention, but even that's just to fiddly for the age group I have to deal with.
Assuming you guys go ahead with any of my suggestions, I will happily help with testing, though my server isn't big and is strictly whitelist only.
Thx mub
@MattyQ
Oke thanks.
@Luckyy13
To blackwolf12333's credit, BlockProtection Reloaded uses the lite database extremely efficiently. I'm dealing with very large numbers of protected blocks with no lag from the plugin.
@blackwolf12333
Oke thank U
@Luckyy13
There is no MySQL support from this plugin...you can either use WatchBlock or you use BlockProtection, both is just a waste of resources.
WatchBlock uses MySQL as backend, BlockProtection does not. If you really need MySQL I won't stop you, but BlockProtection works just as good.
Do i need wactblock plugin for the mysql settings to work,I have mysql settings enabled on the bp plugin only its not saving to mysql its saving in the plugin folder.
Any idee what iam doning wrong
De sql setting are correct that i now.
@MattyQ
Yes it should, and yes that doesn't work. I am aware of it, but for some reason I never really looked into it :/
In v3.0.6, should the utility tool given by /bptool allow players to claim blocks with a left-click? If not, I'll submit a ticket for it. =) If so, it doesn't appear to be working.
@blackwolf12333
If you need more tests please talk with me again.