potatolain / TravelPortals

A portal system for Bukkit for Minecraft
BSD 2-Clause "Simplified" License
3 stars 2 forks source link

Portal lock/unlock command #6

Open potatolain opened 10 years ago

potatolain commented 10 years ago

Currently, portals are either open to the world or locked to the user that created them. This is done by permissions, and is not configurable by users.

A nice change would be to make it so that portals can be "locked" so that only the current user can use them, or "unlocked", so that all users can teleport to and from it.

I suggest the command "/portal lock" to do this.

Phoenix616 commented 5 years ago

Just for me to remember: This should be called "public" and "private" and might even go into the same category as "hidden"?

There's also another issue here: Should existing portals pointing to private ones still be able to warp to them? Or should it prevent existing ones even if the warp is already set?

Ultimately one could even add a more fine grained control here: Allow only certain player's portals to point to or even warp to your portals or a specific portal. I'm not sure if there is a need for that though, my players are currently managing that by simply locking the exit door with LWC (which has some ways to bypass though), maybe when a per-portal system is added one could hook into different protection plugins and check the door, and if the user warping does not have access to the door he isn't even warped to prevent bypassing such a protection?