Cuberite Forum

Full Version: Spawn protection [bearbin created one]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
could somebody maybe create a plugin that doesn't allow people with permission to destroy 10 or more blocks around the spawn? becouse some people are griefing the rule signs in my spawn Sad.
I'm working on this plugin, but the code does not seem to work for me. If I upload a zip file you might be able to find out the problem.
i can't let it work either Sad
It seems OnBlockDig() returns not a proper player object or something. I'll ask a dev to see what's wrong with the code.
not only OnBlockDig() OnBlockPlace() to
I believe the reason why it's not working is because those hooks now recieve differenc set of arguments, and all PacketData classes were removed.
I'll take a look at it tonigh and will post a plugin for testing.
Thanks Smile If you can fix it, can you update the wiki too?

Edit, just worked it out, fixing now!
Updating wiki is really a class-of-its-own task Smile Maybe one day... Tip: look into source code, it's kinda well-documented. If you see //tolua_export - then you can use it.
I got the no breaking blocks done, but not no placing blocksTongue

I'll see if I can find out what the problem is. Uploading a temp version.

Edit: Tried to update wiki, got socket unable to be opened error.