Code:
-----------
----++++++++++-
-++++--------+-
-+---- -+-
-+- ------+-
S-G- -++++++-
-+- -+------
-+------+-
-++++++++-
----------
S is the sign
G gate
+ is the fence
- is the protection
yes they can be non-rectangular
it protects the fence and one block around each fence
the idea is that players could build a wall or something but im still not sure what I do against players who built over it and jump in the not protected field maybe teleporting them back if the gate is closed? would be a nice idea
but I faced another problem I started to write the fence coordinates in the database while tracing but it takes a little bit long and I think big fences will cause a deadlock. is there anyway to tell the deadlock protection that the process is still living?