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.
@DiegoRamirez
To be honest, the timer isn't working yet :/ I am working on it right now...
Can you post a release for 1.5.2? With /bpclean?
@KDanielle1217
I don't see why it wouldn't be. It has worked for 1.5.2 too.
Is this compatible with 1.6.1?
@blackwolf12333
Ah okay, thanks.
You look my avatar, respect for you. :)
@Tropix1
No, griefers can't destroy blocks of people that don't have the griefer in their friendlist. When a griefer adds a player to his friendslist that means that that player can break blocks the griefer placed, not the other way around.
Maybe a nice thing to add:
- About the friend system, they can easily grief now if they know who the owner of the building is, they can just add them to their friend list and grief. Can you add something like that they both need to have each other in their friendlist?
Thanks! I'll make a donation for sure when that feature will be out! It's the missing things to make this plugin viable on a long term.
@DjBuRnOuTQc
That should be doable too :)
@blackwolf12333
Nice and do you know if you'll be able to add an auto-clean after X days in the config file like I said? It would use a file to log when each player last logged in and if a user doesn't login for X days, it remove his protections.
@Puseidr
Ok, I'll look into it, but I can't promise anything since I have no experience with MySQL.
please add mysql support! on servers with many worlds an big buildings it takes a lot of time to save and load the .db.. without blockprotection i need 12 seconds for a serverstart, and with BP it takes 30+ seconds
@DjBuRnOuTQc
I have a beta test version that includes making a WorldEdit selection and removing every protection in there. Attachment is here.
I'll look into that.
Is there a way to remove blocks protection from a zone? Like, selecting a zone with WorldEdit and removing the protection of blocks in that zone.
It would be nice to add a feature that would remove protections of someone that didnt log in since X days.
Thanks!
@deathnote1029
If I am correct there should be a "disabled-worlds" option in the configuration file, or something that looks like that. You just put the name of the worlds you want to disable there.
@blackwolf12333
One last question; Is it possible to have it turned on in one world and off in the other world? Currently when a player turns it on in say the pve world, they can then go to the pvp world where permissions are set to disable the command(but it's still set to on from the pve world) and start placing protected blocks in pvp
Is there any way around that?
Thanks
deathnote1029
@deathnote1029
Yes, this plugin has multi world support.
@blackwolf12333
Hey there, i was just wondering if this has multiworld support? :)
Thanks
deathnote1029
@Marium0505
I haven't really tested it I believe, but it should.
Does this work on 1.5.2?