LaserHydra
Create portals allowing players to walk through to another location

Supported Games
GameServerKingsGameServerKings

Portals allows to place Portals which you can step into to teleport.

What are portals?

Portals are represented by spheres you can step into. Each portal can have multiple entrances and exits (portal points).
Every time a player enters an entrance, a random exit is chosen for them to be teleported to.Portals can also function in both ways where players can step into an exit and get teleported to an entrance.

Permissions

  • portals.use -- required to use portals
  • portals.use.<portal> -- required to use portals with individual permissions
  • portals.admin -- required to use the /portal command

Chat Commands

  • /portal list -- list existing portal names
  • /portal entrance|entr|exit <portal> -- add new entrance or exit to a portal
  • /portal entrance|entr|exit -r <portal> -- add new entrance or exit to a portal, and remove any existing entrances or exits
  • /portal info -- show information about the portal entrance/exit you are looking at
  • /portal remove -- remove the portal entrance/exit you are looking at
  • /portal remove <portal> -- remove the entire portal with the specified name

Configuration

  • Sphere Radius -- the radius of the portal spheres
  • Sphere Density (Enterable) -- the amount of spheres layered on top of eachother for portal points which can be entered (entrance, or exit of a two-way portal)
  • Sphere Density (Not Enterable) -- the amount of spheres layered on top of eachother for portal points which can not be entered (exits of a one-way portal)
  • Portals -- additional options for each specific portal
    • Name -- the name of the portal
    • IsOneWay -- if false, exits can also be entered to teleport to a random entrance
    • RequiresIndiviualPermission -- if true, players need the permission portals.use.<portal> instead of portals.use
    • TeleportationTime -- amount of seconds to wait before teleporting the player
    • Entrances -- entrance positions, best not manually configured in here
    • Exits -- exit positions, best not manually configured in here

Default Configuration

{
  "Sphere Radius": 1.0,
  "Sphere Density (Enterable)": 3,
  "Sphere Density (Not Enterable)": 1,
  "Portals": []
}

MIT License


Copyright (c) 2019 LaserHydra


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.