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.
can you add the command /bp off/on so a so you can deactivate blockprotection in an WG-region?
@mikeyriver
I'll update it in the afternoon, than I'll upload it and it might take a day or so to get approved.
BTW, have you tested if it doesn't work? Because some times plugins just work from one cb version to the other.
But its not compatible with 1.5...please update.
Works like a charm :)
@deleted_10188385
I actually am not sure if it protects chests from opening by other people. If it does the friendslist will be applied on that too.
Does this plugin protect other people from opening chests/machines when there not on the friends list? If not can you add this? Thank you. If it does already does, sorry...
@mikeyriver
Upgrading your java to Java 7 will fix it:)
I dont know why but i keep getting this message for every version of this plugin:
Could not load 'plugins/BlockProtection (1).jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: info/kanlaki101/blockprotection/BlockProtection : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:52) at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.UnsupportedClassVersionError: info/kanlaki101/blockprotection/BlockProtection : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
and i have vault, worldedit installed already but this plugin just wont start up
@ScrimCraft
They are added to the blacklist by default, but if you want them protected just remove 6 from the blacklist in the config.
Why arent' leaves protectd
@DjBuRnOuTQc
Good idea:) When I get time I'll add it:)
Are you able to add an expiry time soon?
Example : A player don't log in for 30 days and all of his blocks gets unprotected.
I think that would be pretty easy to implement and it will prevent the database to get overloaded with a lot of players.
@Puseidr
I saw your ticket. I have no idea what could be going on. But I'll have to find that out:)
When you use this plugin with the MultiVerse plugin the friend function doesn't work, you need to retype /bpadd username everytime you switch the worlds . Even OP-players cant remove protected blocks you always get the msg "Block Owned by:..."
is there a way to fix it? i allready postet a ticket
@rfsantos1996
You can change that, if you want the save interval to be lower you should be able to set that in the configuration.
Would be nice to have MySQL database, my computer can run the server without lagging, I have too much ram to 50 players, a lot of disk space, but if my computer freezes, bluescreen or anything like that, the blocks on the past 1 hour wont be saved
@cproetti
It shouldn't, I'll have a look at it.
how come when i reload the server the block protection turns off?
@ScrimCraft
Well, there is, but you would have to do stuff I don't think you will understand:P
Is there a way to use this with Java 6?