About Custom Portals
This plugin adds custom portals, which could be deployed on players' bases, vanilla and custom monuments.
Â
Â
Custom maps
To use Custom Portals on your map you need to place any prefab and create a custom prefab from it.
Name it CustomPortals.<portal name>
2 portals with the same name will link.
Â
! Make sure not to break the prefab and not to add them as part of other prefabs !
Â
Â
Â
Â
Commands
Player Chat Commands
- /buyportal - buy portal (requires customportals.buy permission)
- /spawnportal - spawns portal (requires customportals.spawn permission)
Admin Chat Commands
All of the commands that are mentioned below require customportals.admin permission!
- /customportals add <portal name> - spawns portal on the monument you stand on
- /customportals remove - removes portal from the monument
- /customportals reset - removes all portals from the monument
- /changeportal - setup any portal
Admin Console Commands
- giveportal <amount> <player name> - gives portal(s) to the specified player
Permissions
- customportals.use - required to use portals
- customportals.admin - allows usage of /customportals and giveportal commands
- customportals.buy - allows players to buy portal, using /buyportal command
- customportals.free - allows players to get portal for free, using /buyportal command (buy permission is still required)
- customportals.freeuse - allows players to use the portal for free (if the use price is set)
-
customportals.bypasslimit - allows players to place infinite amount of portals
-
customportals.bypasslinkinglimits - allows players to link any portals
-
customportals.spawn - alllows players to spawn portals using a command, instead of placing them manually
If you are an admin, you can specify individual portal permissions. They are saved as customportals.portal.<portal permission name>
Â
Localization
This plugin has built-in support for the following languages -
- English
- Russian
API
BasePortal SpawnPortal(Vector3 position, Quaternion rotation, string name) // spawns portal Item CreatePortalItem() // returns portal item
