Portals are now area based.
This plugin currently DOES NOT work in single player.
To install:
Extract Portals2.0.Zip to you Plugins directory.
Plugin Settings:
AreaOwnerPermissionFile= this should be the file name thats used to designate a player owns an area. equivalent to adding a player to an area.
DefaultAreaPermissionFile= this should be the file name for an areas default permission. equivalent to setting an areas default permission.
*Note: The above files should should include the file extension .json. (AreaPermissionName.json).
MaxPortals= default max portals a player may place.
CanPlaceWilderness= true/false allows players to place portals in unclaimed area. (does not include admins).
ShowAreas= true/false replaces the ingame showareas command but only shows the player claims.
Commands:
/ShowAreas shows the players claims.
/HideAreas hides the players claims.
*Note: only works if ShowAreas setting is true.
Player Menu's:
The main menu is added to the players inventory
Place: places a portal. (if an admin places a portal it will ask to place as admin or player. admin placed portals do not count towards the players portal count)
Show: shows all the players portals. changes to Hide after being clicked.
Home: this is a button to go to your home portal. if no portal is set it will take you to your default spawn position.
Admin: only added for admin. opens the admin panel.
when entering a valid portal you will get a message to press x to open.
Interaction menu will only show open if its set to public or the player is the owner.
if a portal is public and the player is not the owner this menu will just say Open
Open: when selecting open there are 2 possible outcomes
1. the players portal selection opens(no destination set).
2. the player is instantly teleported to the destination(destination set).
Edit: allows for basic editing of the portal.
SetHome: sets this portals location to the Home button(Inventory menu).
Remove: removes the portal.
Edit menu:
Rename Area: sets the area name.
Switch: changes Private/Public.
Set sets the destination to one of your other portals.
Player portal Menu: lists all available portals for the player.
Admin panel: gives admins control of all portals and player
Plus(+)button. adds to the players max portal count.
Minus(-)removes from the players max portal count.
Enable/Disable disable all portal functions for a player.
Please let me know if you have any issues.
Current bugs:
does not work in single player! currently working on a single player version of portals.
area permissions are not updated if player leaves destination portal to quickly.
public portal list names not updating to match after area name change
Future Plans:
Add multiple prefabs for portal visualization.
Add temp return portals.
Add search functions to admin panel for portals and players.
Add option for players to set different background images.
Update 2/15/25:
fixed area permission update issue. (need verification)
fixed public list names not updating with area name change.
changed area color for the built in show/hide areas to make it more visible.
Note* to change the background image, replace the background file located in the Portals/Assets folder.
the new image MUST be named background.jpg.
How To Update:
extract the zip file. copy Portals.jar to the Portals plugin folder.