Portals

Portals 1.0.2

MonkeyRum

New Member
Hello, I´ve been trying to configure the plugin but I am obviously doing something wrong since I haven´t been able make it work.

Here is what I´ve been doing:

1) Set a block coordinate as the bottom left corner of the portal and build a frame with any blocks from that position along the X axis. ie. 193 4 181
2) Go into the server filess > plugins > portals > config.yml
3) Input values into the code as follows:
# Portal from worldA to worldB
world: "worldA"
# portal's corner x
x: 193
# portal's start y
y: 4
# portal's corner z
z: 181
# portal's width
width: 2
# portal's height
height: 2
# portal's rotation x or z
rotation: "x"
# portal's command
command: "/mw tp worldB"
4) Restart server
5)Test portal
6)Nothing happens :(

I would very much appreciate any guidance that would help me set up the portals in my server.

Thank you very much.
 

PetteriM1

Resource Mod
Staff member
Hello, I´ve been trying to configure the plugin but I am obviously doing something wrong since I haven´t been able make it work.

Here is what I´ve been doing:

1) Set a block coordinate as the bottom left corner of the portal and build a frame with any blocks from that position along the X axis. ie. 193 4 181
2) Go into the server filess > plugins > portals > config.yml
3) Input values into the code as follows:
# Portal from worldA to worldB
world: "worldA"
# portal's corner x
x: 193
# portal's start y
y: 4
# portal's corner z
z: 181
# portal's width
width: 2
# portal's height
height: 2
# portal's rotation x or z
rotation: "x"
# portal's command
command: "/mw tp worldB"
4) Restart server
5)Test portal
6)Nothing happens :(

I would very much appreciate any guidance that would help me set up the portals in my server.

Thank you very much.
At least the command must be without /
 

Brotabochip

New Member
At least the command must be without /
The setup of the plugin doesn't allow for permissions support the code for grabbing the command is missing a p. .The code should be changed from
Server.getInstance().dispatchCommand(p, c.getString("command"));
To
p.Server.getInstance().dispatchCommand(p, c.getString("command"));

that way the server can pull the perms from the player.
 

PetteriM1

Resource Mod
Staff member
The setup of the plugin doesn't allow for permissions support the code for grabbing the command is missing a p. .The code should be changed from
Server.getInstance().dispatchCommand(p, c.getString("command"));
To
p.Server.getInstance().dispatchCommand(p, c.getString("command"));

that way the server can pull the perms from the player.
The project wouldn't even compile with that ?
The real "fix" would be to use ConsoleCommandSender when executing the commands but I'm not planning to do that as the point of this plugin was to run the commands as player
 

Brotabochip

New Member
However when i try to use the multiworlds plugin teleport with this it says i dont have perm as op or when i set default group to have permission. I found that solution by looking at the plugin for using signs for commands it had that script. That one supports multipass as well as runs when you have perms
 

Brotabochip

New Member
However when i try to use the multiworlds plugin teleport with this it says i dont have perm as op or when i set default group to have permission. I found that solution by looking at the plugin for using signs for commands it had that script. That one supports multipass as well as runs when you have perms
I say just give it a shot if it doesn't work then it doesn't work but i think whats happening is its running command through server but executing as player. But some commands are not working in that fashion like mw tp
 

Santydog

New Member
can someone help me I don't quite understand how to create the portals, any help could be helpful or any tutorial plis
 

wizardeddas

New Member
For some reason the portals only work for OPed characters, is there any way to get it to work for everyone? Or set it on a portal by portal basis?
 

IProjectMC

Member
I just found out how to make it work 100% (Copy Config/Instructions Below!)

Config
:
# config version, do not edit
configVersion: 2
# teleport player to spawn when he uses portal, prevent infinity portal loop with server transfers
resetPosition: false
# list of all portals
portals:
# portal's name doesn't matter
example1:
# portal's level name
world: "Lobby"
# portal's corner x
x: -60
# portal's start y
y: 4
# portal's corner z
z: 17
# portal's width
width: 5
# portal's height
height: 5.0
# portal's rotation x or z
rotation: "x"
# portal's command
command: "say worked"

How To Make Portal Properly:

Stand in the center of the portal and imput the exact coordinates you're on.
Keep the width, height, and maybe rotation the same in the config
 
Top