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.
@SkyRanger Upgrade your java and you should be fine:)
@lenivets09
Lenivets09 something to learn today for you:P That error occurs when a user uses java 6 while the code is compiled with java 7.
@DjBuRnOuTQc
1. WatchBlock - does not load DB at start. 2. WB - Is not performance.. it's use Millions of requests to DB - it's very bad and stupid. 3. BP - Works faster.
Like i sayed some post's down.
Like I said in another post, I'm coming from WatchBlock and thanks for your importer, I succesfuly imported my database but here's an issue : I have a VERY HUGE database... and since this plugin load it completely at the start, it's taking a lot of time to start the server, Can you find a way to upgrade the performance on big server?
If you could look at how WatchBlock was doing things, that plugin had a very good performance and it loaded only required data on the server.
@SkyRanger
Workd perfect on 1.4.7
Write full error. It's not BlockProtect error !
it wont work for 1.4.7
I get the Error: Unsupported major.minor version 51.0
how can i fix this ?
Did you delete your OLD Config ? Null can be only if your using old Config without Transletion.
Please READ cearfuly Update changelog !!
i put the launch for show to you im runing on java 7
now the plugins is load and i dont ave error mesage on consol any more the problem now is if i do a comand this show null on the chat if i do /bp
i will post a prtsc more later.
im not a programer i just understand java a litle.
@Fexer
No.. just a little brain.. And normal telling of your problem. I don't metter how you lauch your server and where do you hold it. Copy message of Error.
hi again . i run my serve in laptop just for test plugins , and is for me and 4 friends , i dont need tomany ram to do that, is not a big server. i make it work with :
@ECHO OFF SET BINDIR=%dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1400M -Xms1400M -jar craftbukkit-1.4.6-R0.3.jar PAUSE>>
and i dont get error mesage in consol now.
but now if i do /bp comande i get null mesage
if I understand well Lenivets09 i need a Windows x64 to run BlockProtection v3.0.4 corectly?
@Fexer
FACEPALM If your holdind server on LEPTOP. Install x64 Windows FIRST. And 2d - USE x64 JAVA
You can use max 1.2g on 1.7 and 1.6 ! All other is lie ! Read off Java page.
if i uze java 7 i cant run more 1024m, java6 alow me to uze 1536M ram i ave 3G ram on the the laptop, ave some idea? whi?
Run: @ECHO OFF SET BINDIR=%dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1536M -Xms1536M -jar craftbukkit-1.4.6-R0.3.jar PAUSE
dont run: java -Xms1536M -Xmx1536M -jar craftbukkit-1.4.6-R0.3.jar -o true PAUSE
i ave both java instaled (java6 and java7) im runig in windows7 x86 3 G ram
if is posible convert BlockProtection v3.0.4 to java 6 thats will be magnificent.
BlockProtection v3.0.2 work very nice on my server. world edit tool on v3.0.4 is a amazing idea. thats realy realy good and uze full tool.
@Fexer
What java version are you using? I guess lenivets09 compiled it with java 7 while you use java 6, that is not possible:( To fix this, or you upgrade your java or lenivets09 recompiles it with java 6
i get this error on BlockProtection v3.0.4 ,can you help?
06:05:52 [SEVERE] Could not load 'plugins\BlockProtection.jar' in folder 'plugin s' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError : info/kanlaki101/blockprotection/BlockProtection : Unsupported major.minor vers ion 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava: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_6.CraftServer.loadPlugins(CraftServer.jav a:239) at org.bukkit.craftbukkit.v1_4_6.CraftServer.<init>(CraftServer.java:217 ) at net.minecraft.server.v1_4_6.PlayerList.<init>(PlayerList.java:52) at net.minecraft.server.v1_4_6.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java :104) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java: 399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84 9) Caused by: java.lang.UnsupportedClassVersionError: info/kanlaki101/blockprotecti on/BlockProtection : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 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(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:173) ... 9 more
New version added. Piston Fix and WatchBlock mySql import.
@lenivets09
Great that you can work on this while I can't, school is like hell at the moment:P
Also a little note, add protection for paintings and item frames with the HangingBreak and Place events, I just don't have the time to do that:(
@tiwar
Only if you try to grif someone block :) ups. I found. It disabled if block is protected by someone..
New version added. 3.0.4
Hi,seems like it disabled the use of pistons? is there a way to work around this?
@DjBuRnOuTQc
Some small bugs i fixed in last version. Ill try to make import data.
I'm currently using WatchBlock for my protection needs but I used BlockProtection in the past. Can you tell me if all the newest blocks added until the current patch is protected? Like the item frames etc... Also is the /bp admin command work well? I recall a bug in the past where some blocks wouldn't be possible to delete even with the command.
Oh, Is it possible to import data from WatchBlock to your plugin? I'm storing everything in a MySQL Database atm.
I'll prolly send you a donation if i'm chosing to switch. Good per block protection plugin is so hard to find and they always get abandonned.