Default Config:
TravelAgents:
'1':
material: obsidian
createPermission: 'null'
usePermission: 'null'
mainWorld: world
targetWorld: world_nether
canCreateNewPortalsInMain: true
canCreateNewPortalsInTarget: true
minWidth: 2
maxWidth: 40
minHeight: 2
maxHeight: 40
OnEnterMainCommands:
- 'player:/tp @e ~ ~20 ~'
- 'server:/tell <playername> hello'
OnEnterTargetCommands:
- 'server:/say i am the server'
notify:
OnCreateMain: '&6You created an Portal to the Nether!'
OnEnterMain: '&6You entered the Portal to the Nether!'
OnCreateTarget: '&6You created an Portal to the Overworld!'
OnEnterTarget: '&6You entered the Portal to the Overworld!'
If you set the Messages to: "'' -> the Message will not be printed!
Also you can change the type of the portal from obsidian to glowstone.
After an server reload, you can only create portals to the nether with glowstone-frames. Also, new generated portals will have this material.
The minimum Width/Height must be 2
The maximum Width/Height can be 64
Set a Permission to "null" to remove the need for permissions
Commands:
You can secify Commands that run if the player enters the main or target-portal. Like in the example above you have to define if the player should run the command or the server with "player:<cmd>" or "server:<cmd>"
The <playername>-tag can be used in commands to insert the player name.
You can add more Travel Agents by copying the section and change the '1' to the next available number. You can then modify each setting/permission per portal.
Example:
If you want to add an Obsidian-Portal between Overworld and End, but also keep the default function of Overworld-Nether-Portal, you can just add a new travel agent and change the value of 'targetWorld' from 'world_nether' to 'world_the_end' for example...
...
...
...
'2':
material: obsidian
createPermission: 'null'
usePermission: 'null'
mainWorld: world
targetWorld: world_the_end
canCreateNewPortalsInMain: true
canCreateNewPortalsInTarget: true
minWidth: 2
maxWidth: 40
minHeight: 2
maxHeight: 40
notify:
OnCreateMain: '&6You created an Portal to the Nether!'
OnEnterMain: '&6You entered the Portal to the Nether!'
OnCreateTarget: '&6You created an Portal to the Overworld!'
OnEnterTarget: '&6You entered the Portal to the Overworld!'