Spawn protection [bearbin created one] - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html) +--- Thread: Spawn protection [bearbin created one] (/thread-661.html) |
Spawn protection [bearbin created one] - NiLSPACE - 12-26-2012 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 . RE: Spawn protection - bearbin - 12-27-2012 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. RE: Spawn protection - NiLSPACE - 12-27-2012 i can't let it work either RE: Spawn protection - bearbin - 12-27-2012 It seems OnBlockDig() returns not a proper player object or something. I'll ask a dev to see what's wrong with the code. RE: Spawn protection - NiLSPACE - 12-27-2012 not only OnBlockDig() OnBlockPlace() to RE: Spawn protection - Taugeshtu - 12-28-2012 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. RE: Spawn protection - bearbin - 12-28-2012 Thanks If you can fix it, can you update the wiki too? Edit, just worked it out, fixing now! RE: Spawn protection - Taugeshtu - 12-28-2012 Updating wiki is really a class-of-its-own task Maybe one day... Tip: look into source code, it's kinda well-documented. If you see //tolua_export - then you can use it. RE: Spawn protection - bearbin - 12-28-2012 I got the no breaking blocks done, but not no placing blocks 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. |