Portals for Rust

Create portals and feel like in Star Trek

Total Downloads: 1,964 - First Release: Jul 16, 2015 - Last Update: Nov 13, 2016

5/5, 11 likes
  1. LaserHydra
    Configuration File:
    Yes
    Portals gives you the opportunity to place portals in your world.

    How it works:
    • Go to the place where the entrance should be
    • write /portal entrance Portal1 (Portal1 is an example name for a Portal)
    • go to the place where the exit should be
    • write /portal exit Portal1
    • Open the Datafile and change other details of the Portal, for example the radius, in which it teleports people.

    No configuration file.
    Portals are saved in .../oxide/data/Portals.json


    Permissions:
    • portals.admin required for /portal command
    • portals.use standard permission for using portals (can be customized per portal in .../oxide/data/Portals.json)

    Commands:
    • /portal entrance <ID> set the entrance for a portal
    • /portal exit <ID> set the exit for a portal
    • /portal remove <ID> remove a portal
    • /portal list list existing portals

    Future updates:
    - your suggestions

    [For Developers]
    + added OnPortalUsed(BasePlayer player, JObject portal, JObject point)
    • JObject portal => portal object; Example:
      Code (Javascript):

      {
          "ID": "1",
          "Entrance": {
              "Location": {
                  "_location": "16.76093 75.57893 10.72905"
              }
          },
          "Exit": {
              "Location": {
                  "_location": "3.850618 72.05898 22.37546"
              }
          },
          "OneWay": true,
          "TeleportationTime": 0.0,
          "RequiredPermission": "portals.use"
      }
    • JObject point => exit or entrance point, player is being teleported to; Example:
      Code (Javascript):

      {
          "Location": {
              "_location": "16.76093 75.57893 10.72905"
          }
      }
    Jurgen773 and hax0rmort like this.