SpawnProtect
#1
Warning: MUST be used with rev 1113 or above to be effective.

My first plugin.

Basically it allows you to protect a certain area around spawn.

Features:
  • Blocks players building and placing blocks around spawn.
  • Protect radius is configurable.
  • Permission to bypass protections.
  • Lightweight operation, better than before.
  • Logging of block breaks/places (optional, turned on by default).

Permissions:

SpawnProtect has only one permission,

SpawnProtect.bypass

This allows people to bypass spawn protection.

Configuration?

There is a configuration section up the top of main.lua, in the plugins folder.

Download:

For stable download, please use: http://ci.berboe.co.uk:8080/job/SpawnPro...rotect.zip
For a dev download, see: http://ci.berboe.co.uk:8080/job/SpawnPro...rotect.zip

Development:

See the git repo at https://github.com/bearbin/SpawnProtect
Reply
Thanks given by: Taugeshtu , NiLSPACE
#2
thank you once again Smile
Reply
Thanks given by:
#3
Now the plugin is much more efficient Smile

I doubt it would make much difference but performance is what MCServer is going for so there's no need not to do it.

Edit: Oh yeah, and it works now.
Reply
Thanks given by:
#4
Added logging feature and made it so it actually works, i forgot to test last timeTongue
Reply
Thanks given by:
#5
Updated for rev 1126 plus. Use the dev version please. Block breaking stopping doesn't work but I think it's the fault of the API
Reply
Thanks given by:
#6
I can still build even if i don't have SpawnProtect.bypass
Reply
Thanks given by:
#7
3 Questions:

Are you using the:
  • Hooks branch build?
  • Dev version of SpawnProtect?

Also, block breaking protection doesn't work quite yet. I think it's an api bug. Try block placing.
Reply
Thanks given by:
#8
Yes i have the Hooks branch build
Yes i have the dev version of spawnprotect
and prevent placing works indeed Smile
Reply
Thanks given by:
#9
OK, I think it's just the API bug then Smile

returning true to OnPlayerBreakingBlock() seems not to cancel the block break.
Reply
Thanks given by:
#10
Should be fixed in rev 1133.
Reply
Thanks given by: bearbin




Users browsing this thread: 3 Guest(s)