Spawn protection [bearbin created one]
#1
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.
Reply
Thanks given by:
#2
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.


Attached Files
.zip   SpawnProtect.zip (Size: 1.63 KB / Downloads: 212)
Reply
Thanks given by:
#3
i can't let it work either Sad
Reply
Thanks given by:
#4
It seems OnBlockDig() returns not a proper player object or something. I'll ask a dev to see what's wrong with the code.
Reply
Thanks given by:
#5
not only OnBlockDig() OnBlockPlace() to
Reply
Thanks given by:
#6
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.
Reply
Thanks given by:
#7
Thanks Smile If you can fix it, can you update the wiki too?

Edit, just worked it out, fixing now!
Reply
Thanks given by:
#8
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.
Reply
Thanks given by:
#9
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.


Attached Files
.zip   SpawnProtect.zip (Size: 1.66 KB / Downloads: 229)
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)