So, Since the server went down I started to code an escape rope plugin, im not amazing at java but I can do a bit!
The idea I had in hand was:
- "/escape" to use the escape rope.
- You would need 10 string.
- When you type the command it will take 10 string from you and bring you back to the start of the cave?
- How would this work? Well script block, before you enter the cave the sb command will do this:
- ./sbwalkcreate @bypass /sethome escaperope
- Then when the player walks into the cave it will set there home there. This is a bypass so they shouldn't be able to reset that home.
- Then when the player is stuck in the cave then will do /escape and the command will run taking away 10 string and tping them to the start of the cave!
- Other info: /spawn, /tpa, /tpahere, /tp, and other tp commands should be disabled in the caves! Or else there is no point of this plugin.
- I have started coding this plugin and it might take time so bare with me
-Shane, enjoy !
Shoot down an idea?
- "/escape" to use the escape rope.
- You would need 10 string.
- When you type the command it will take 10 string from you and bring you back to the start of the cave?
which opening, some have more than 3 - How would this work? Well script block, before you enter the cave the sb command will do this:
we have scriptblock, no plugin coding needed - ./sbwalkcreate @bypass /sethome escaperope
overriding the original player home, or throwing an error because they can't set more than X (rank dependant) No one would enter a cave for fear of losing their bank, their base, their house, etc - Then when the player walks into the cave it will set there home there. This is a bypass so they shouldn't be able to reset that home.
@bypass simply says "do this without regard for permissions when the @player runs the command. it has no effect on their ability to use a command afterwards. - Then when the player is stuck in the cave then will do /escape and the command will run taking away 10 string and tping them to the start of the cave!
I could do this with ModDamage. - Other info: /spawn, /tpa, /tpahere, /tp, and other tp commands should be disabled in the caves! Or else there is no point of this plugin.
there may be if they want to go to the start of the cave and not a warp or a different sethomeBecause we do already have ScriptBlock, the only "coding" any plugin would need to do is an alias for /escape (which, again, I could have done with ModDamage, and I didn't already due to the flaws in the /home section)
So whats the rating? Did I break enough hearts this time? Was I c0ld enough?
Now.........
Now if you mean make the plugin, then I'd say hook into worldguard and check the region name. If the region name is one with preset location(s) then when the rope is used, tp that player to the nearest location defined for that region name. If the player isnt in a rope-location-defined region, do nothing. Sure the admins would have to
/escaperope set unioncave1 unioncave
/escaperope set [location] [cave/forest regionName]
for every cave entrance, and for every cave, but if it gets the idea to work, I like it.