EngineHub / WorldGuard

🛡️ Protect your Minecraft server and lets players claim areas
https://enginehub.org/worldguard/
Other
827 stars 542 forks source link

Add a entry/exit flag that ignores teleporting #929

Open LadyCailinBot opened 10 years ago

LadyCailinBot commented 10 years ago

WORLDGUARD-3078 - Reported by TGS

Sometimes you want a place where people can't exit from (could be a Hunger Games arena etc) but you want them to be able to leave using other plugins (/warp, /spawn, /hg leave, /leave etc.) by teleporting. Therefore it would be useful to have a exit + entry flag that ignores if plugins teleport people out and only prevent it if they walk out.

LadyCailinBot commented 10 years ago

Comment by Tofwap

Sounds like a good idea - would definitely improve the plugin options.

If this gets set to invalid I would suggest a world border using the worldborder plugin. You can use a command block to give them the bypass permission and then have another one move them out of the region.

LadyCailinBot commented 10 years ago

Comment by TGS

Yea might be possible, but I would love to see this added

LadyCailinBot commented 10 years ago

Comment by wizjany

you can turn off use-player-teleports in config

LadyCailinBot commented 10 years ago

Comment by TGS

That's correct, but I do have some regions which I don't want them to be able to teleport out of

LadyCailinBot commented 9 years ago

Comment by sk89q

Do people still want this?

LadyCailinBot commented 9 years ago

Comment by TGS

Yes.

LadyCailinBot commented 9 years ago

Comment by Tofwap

I am still interested in this as well.

LadyCailinBot commented 9 years ago

Comment by wizjany

Has been added as exit-via-teleport. https://github.com/sk89q/WorldGuard/commit/e1843624bbc1b58237e5c9664645c5ed2005e041

edit: well, half of it anyway...is an entry one also needed

LadyCailinBot commented 9 years ago

Comment by TGS

Okay, awesome does this mean that if you only set this flag they can only leave the region by teleporting?

LadyCailinBot commented 9 years ago

Comment by TGS

Okay, I did some tests, deop-ed myself and removed myself from all permission groups, I could /warp just fine inside this region:

LadyCailinBot commented 9 years ago

Comment by wizjany

k guess we'll have to look into this still