Is your feature request related to a problem? Please describe.
There are several other feature requests to make a portals private and not show on the target portal select list. This feature is needed for both players and admins on a multiplayer game server. for a player there are times when you may want to place a portal and make it invisible to the outside world. you can protect the portal from use with a ward on the portal end but have no ability to 'hide' it from the rest of the world as a target with the pull down list.
As an admin there are many uses of portals to make custom dungeons and be able to use vanilla portals to allow player access. however with xportal it is impossible to conceal the destination portal from the target list when the portal exists, and you cannot define a single portal to take a player to the dungeon portal because the dungeon (or destination) portal always immediately shows up on everyone's destination pull down list. Having the ability to restrict destination portals is very much necessary for players and admins specifically in a multiplayer environment.
Since xportal utilizes the vanilla base mechanism of a from and to definition on each portal, and all the pull down list does is change the 'to' specification (and also automatically if a new to portal is selected, it automatically changes the 'to' destination of the second portal), it seems that having the ability to control access to a target portal works well with the functionality and idea of xportal overall.
As an admin you can also change the ability to have a portal interactable using JereKusula Tweak mod, so you can easily take a portal and define a target, then remove interactablity, and the portal still works and will take you to your chosen destination. BUT, anyone can see and select that portal and go to it. Very similar use case as with a player that wants to have a private base. As long as the destination is selected, then it would be completely acceptable to allow any player to go through the portal, so the control aspect would only be needed when changing the destination entry.
Describe the solution you'd like
Assign owner/creator to each portal when built.
Have the ability to remove the owner/creator tag through a hot key and thereby make the portal 'public' and visible to everyone.
Note: once owner/creator is removed, then it is not necessary to allow for it to be put back, you can just required destroying the portal and rebuilding it with assigned owner/creator when build feature.
Add functionality with the xportal screen as follows:
- if an owner/creator tag is defined (i.e. not blank or public), then only show the portal on the drop down list for destination to that same owner/creator, unless the player is an admin in which case show the portal on the drop down list
Allow anyone to use the portal as long as a destination is defined...in other words if they can find the portal they can use it.
If an owner/creator tag is defined, then only allow a change of destination by the owner/creator or admin.
Optionally - allow name change by anyone (to facilitate mass renaming with multiple players)
Note: this might require a change in the destination list being update more frequently. At present it only seems to update when the server is rebooted.
There is a mod by Kevver called GetYourOwnPortal with very similar functionality as described above. It seems that it would work very well with xportal. I have tried running both together and xportal removes the owner flag that GetYourOwnPortal uses, so the two mods are NOT compatible, however if this didn't happenl, then running both probably would give the needed overall functionality.
Describe alternatives you've considered
Unfortunately as a player desiring a private base or as an admin desiring to use controlled access portals, the alternative is to not use Xportal.
If the solution suggested above is not possible, an alternative might be to introduce a password on every portal, and if you try to pick it on the destination list, you have to input the password. This solution is not as elegant as the one above and might have it's only long list of problems.
Additional context
none
Is your feature request related to a problem? Please describe.
There are several other feature requests to make a portals private and not show on the target portal select list. This feature is needed for both players and admins on a multiplayer game server. for a player there are times when you may want to place a portal and make it invisible to the outside world. you can protect the portal from use with a ward on the portal end but have no ability to 'hide' it from the rest of the world as a target with the pull down list.
As an admin there are many uses of portals to make custom dungeons and be able to use vanilla portals to allow player access. however with xportal it is impossible to conceal the destination portal from the target list when the portal exists, and you cannot define a single portal to take a player to the dungeon portal because the dungeon (or destination) portal always immediately shows up on everyone's destination pull down list. Having the ability to restrict destination portals is very much necessary for players and admins specifically in a multiplayer environment.
Since xportal utilizes the vanilla base mechanism of a from and to definition on each portal, and all the pull down list does is change the 'to' specification (and also automatically if a new to portal is selected, it automatically changes the 'to' destination of the second portal), it seems that having the ability to control access to a target portal works well with the functionality and idea of xportal overall.
As an admin you can also change the ability to have a portal interactable using JereKusula Tweak mod, so you can easily take a portal and define a target, then remove interactablity, and the portal still works and will take you to your chosen destination. BUT, anyone can see and select that portal and go to it. Very similar use case as with a player that wants to have a private base. As long as the destination is selected, then it would be completely acceptable to allow any player to go through the portal, so the control aspect would only be needed when changing the destination entry.
Describe the solution you'd like
Assign owner/creator to each portal when built.
Have the ability to remove the owner/creator tag through a hot key and thereby make the portal 'public' and visible to everyone.
Note: once owner/creator is removed, then it is not necessary to allow for it to be put back, you can just required destroying the portal and rebuilding it with assigned owner/creator when build feature.
Add functionality with the xportal screen as follows:
Allow anyone to use the portal as long as a destination is defined...in other words if they can find the portal they can use it.
If an owner/creator tag is defined, then only allow a change of destination by the owner/creator or admin.
Optionally - allow name change by anyone (to facilitate mass renaming with multiple players)
Note: this might require a change in the destination list being update more frequently. At present it only seems to update when the server is rebooted.
There is a mod by Kevver called GetYourOwnPortal with very similar functionality as described above. It seems that it would work very well with xportal. I have tried running both together and xportal removes the owner flag that GetYourOwnPortal uses, so the two mods are NOT compatible, however if this didn't happenl, then running both probably would give the needed overall functionality.
Describe alternatives you've considered
Unfortunately as a player desiring a private base or as an admin desiring to use controlled access portals, the alternative is to not use Xportal.
If the solution suggested above is not possible, an alternative might be to introduce a password on every portal, and if you try to pick it on the destination list, you have to input the password. This solution is not as elegant as the one above and might have it's only long list of problems.
Additional context
none