Watchblock Refired

WatchBlock
Issues? Read the FAQ first : FAQ
WatchBlock is a high performing Block Protection plugin which protects each individual placed Block by saving it to a MySQL Database or to FlatFiles.
Features
- Automatic Block Protection
- Output of who placed the Block
- Commands to allow/remove players
- Threaded Insert and Remove of Blocks (Not Blocking Main Thread)
- Great Performance
- Multiworld support
- Banana Protect import of Flatfiles
- Admin can destroy any Blocks with Permission
- Easy config, Easy Use
- Exlcusion Blocks List
- Toggle Protection off/on if not Needed
- Protect Blocks above your Blocks as well
- FlatFile support
- Admin Tool
- Import from SQL to Flatfiles and the other way around
- Import BlockProtection Database to WatchBlock
- Import OwnBlocksX Database to WatchBlock
- Protection against Piston Movement
- Water/Lava Bucket Protection
- Locale - Messages can be changed to your language (FlatFiles only at the Moment)
- The Fastest Live Block Protection Plugin outthere with MySQL or Flatfiles
- WorldEdit support to easily Transfer owned Blocks or Protect old Blocks before using WatchBlock
- Chest Protection
Requirements
- Vault Plugin
Admin Permission
- watchblock.admin (To Destroy every Block)
Permission Nodes
- watchblock.protect (To start protection of Blocks you need to add this Permission Node to your group!!!!)
- watchblock.transfer (needed to be able to use the /wtransfer command, ADMINS Please dont use this. watchblock.admin is what you need for transfer)
Commands
Please see Commands Page
AdminTool
- Ops and Admins with PermissionNode watchblock.admin are able to use the woodenshovel to see Owner of Blocks
Import from other Plugins
- BlockProtection
- BananaProtect
- OwnBlocksX
- Switch between WatchBlock MySQL and FlatFiles with the built in Importers
Installation & Configuration
Please see Install & Config Page
Performance Suggestions
- Servers with less than 20 Player online can use FlatFiles with very High Performance
- Servers with more than 20 Players should switch to MySQL the Performance gain over Flatfiles is incredible
Bugs
- Please Report Bugs to Ticket Section
Need a Feature ?
- Let me know in the comments!
This project was originally created by slade87, and has been continued with his consent.
Can you add support for Core Protect? So rolled back players gets their protected blocks unprotected?
Hey I found the problem there where some trouble with a other (Stupid) plugin it is fixed now! (1 thing people can still grab my water and i have bucketgrief on false)
And a REALLY good plugin THANK YOU :D
@kevsidney95
I'm going to setup a server with your configuration files, and see if I can reproduce the bug.
@DjBuRnOuTQc
Sorry for the delay adding expiring protection. I get sidetracked easily.
Ok i did this: ownedmsg: ''This Block is owned by $player!'' abovemsg: ''You can't build above $player Blocks!'' bucketmsg: ''You can't empty your bucket on $player Blocks!'' pistonmsg: ''You can't use Pistons on $player Blocks!'' admintoolmsg: ''This Block is owned by $player !''
Bud still no errors en it isnt working i cant destroy my own blocks and when a friend trying to break it he gets nothing in the chat?!
I really want this (I getting tired of blokprotection)
@DjBuRnOuTQc
I know the best way to do periodic commands in java is to open a separate thread with I timer. I'd just prefer not to. xD
@kevsidney95
For the error you are getting in the log:
ownedmsg: Dit blok is van: $player!
is not valid YAML. You should enclose the text in quotes if you're going to use a colon (:). Try:
ownedmsg: "Dit blok is van: $player!"
EDIT:
You will also want to change:
admintoolmsg: Dit Blok is van: $player !
to
admintoolmsg: "Dit Blok is van: $player !"
@enigma617
Well i'm using uWamp and i'm using MySQL through PhpMyAdmin so I never did any form of commands directly in the console. You could take a look CoreProtect to find the way they do it, the plugin has a command that remove everything older than the amount of days you entered and they stock the date/time directly in a column of the mysql table. You'll need the add the date in the new column for every new entries (and I could manually add the one already there) and the plugin would check for it when you do the command. Optionnaly you could do a option in the config file to let the plugin check itself each X times.
I hope that I helped you, I wish I was coding in Java lol Thanks!
Next problem: Ive did everything thats need to do BUT: Now i cant even destroy all block I did the permissions correct Only if im op i can destroy it HE dosnt even say from whos block it is (I dont get any errors in the config) I did it on mysql even on flat but its dosn't work still!
Plz help me!
(I want this plugin!)
(Before this i had block protection But its crashing because the alot amout of block...)
@DjBuRnOuTQc
Well, at least you're using MySQL. That sure makes it easier :D. Can you schedule MySQL commands to run in Windows 2008 R2? I could always have a separate timer thread in the plugin, however using a built in task scheduler would be a better idea.
@kevsidney95
There is a link to the documentation in the description. I'll look at your specific problem when I get home today.
@enigma617
Nope, i'm running under a Windows 2008 R2 Web server with MySQL.
And i had blockprotection Ans i wanted to know how i transfer it to your plugin?
I think i know what the error means.... Im dutch so i do almost changing everything to dutch and i saw that that is maby the problem Bud still here it is: http://pastebin.com/KbFWkTqD
Config:
http://pastebin.com/PkqyAbgp
@DjBuRnOuTQc
Are you by chance running a linux distro with cron, and using MySQL? If so, I can probably have expiring protection done today, and it would be a more resource efficient solution.
@kevsidney95
filer nødvendige: config.yml server.log
:D
Do you mean my config? Or? ( im sorry im dutch so i cant understand you somethimes)
@kevsidney95
I'll need to see your log. Please post it on pastebin / dropbox, and put a link here, or pm me it.
Hey i have a problem with your plugin: I install everything thats i need for this i have Mysql and i typted everything in bud: If i place a block and other try to destroy it they get nothing in the chat they cant even destroy there own blocks! And if i try /wreload (or something) I get a message and it says: I error has been corrupted
Is this a bug? Or did i something wrong?
@DjBuRnOuTQc
I got a little carried away with adding features xD. I'll try to release a stable build soon with priority to expiring blocks. I can do a bunch of work on it this weekend, so perhaps early next week?
Do you have any ETA for the next update with expiring blocks?
@enigma617
AWESOME, i'm looking forward this build! Once it's out, count on me for a great donation.