BungeeCord Usage
Ancient Gates - BungeeCord teleportation.
This plugin can teleport any player, entity (incl. passenger) or vehicle (incl. passenger) that enters that gate to the designated location and/or execute a command. With the addition of BungeeCord, not only can this plugin teleport all of these across worlds and/or execute commands but it can teleport them across servers and execute commands on the other server.
To get started, type /gate setconf bungeeCordSupport true.
BungeeCord Usage
Typing /gate setconf bungeeCordSupport true is literally all you need to do.
Using BungeeCord's messaging system it gives access to the following commands:
/gate setto [id] [fromserver] - Set “to” to your location on a remote server.
/gate setbungeetype [id] [LOCATION/SERVER] - Set teleportation type on the local server.
/gate addto [id] [fromserver] - Add another "to" at your location on a remote server.
/gate remto [id] [fromserver] - Remove a "to" near your location on a remote server.
To make one of your gates go to a BungeeCord server, simply teleport to the server using the /server [toserver] command, pick a location and type /gate setto [id] [fromserver]. The only new part is that you are specifying the server the gate resides.
If you want the gate to only teleport the player to the BungeeCord server and not a specific "to" location. Use the command /gate setbungeetype [id] SERVER on any gate that you've specified a BungeeCord location for. Each time the player enters the gate they will teleport to their last location on that server.
Remember - You MUST be connected to the server through the BungeeCord proxy, otherwise these commands and teleports will NOT work.
BungeeCord Permissions
ancientgates.setto.local - access to the setto command locally.
ancientgates.setto.bungee - access to the setto command externally.
ancientgates.setbungeetype - access to the setbungeetype command.
ancientgates.addto.local - access to the addto command locally.
ancientgates.addto.bungee - access to the addto command externally.
ancientgates.remto.local - access to the remto command locally.
ancientgates.remto.bungee - access to the remto command externally.
Advanced BungeeCord Usage
For advanced users only. Recommended only for dedicated or VPS servers.
Click here for further information and full setup instructions...
Please explain the socket comms in more detail
can you add a video?
@TanveerGT5
I've re-written this section with examples, hopefully it's more intuitive. This applies to AncientGates v1.7.0 and above.
@Ubique1964
Same as above...
the /gate setbungeetype [ID] server isnt working for me. pls help here is my config:
{ "colorAlly": "LIGHT_PURPLE", "colorSystem": "YELLOW", "colorChrome": "GOLD", "colorCommand": "AQUA", "colorParameter": "DARK_AQUA", "enforceAccess": false, "useEconomy": false, "useVanillaPortals": false, "teleportEntitiesDefault": true, "teleportVehiclesDefault": false, "gateMaxArea": 70, "gateMaterialDefault": "PORTAL", "bungeeCordSupport": True, "bungeeServerName": "HauntCraft", "useSocketComms": false, "socketCommsPort": 18001, "socketCommsPass": "agserver1", "autoUpdate": true, "debug": false }
Make sure you are using AncientGates 1.7.0.
I updated this section when I uploaded 1.7.0, but the BukkitDev team took 2 days to approve the file.
"bungeeTeleportDefault": "LOCATION",
What else can I use for this part in the config?
"customBungeeMessages": true,
Can you explain this one too?
@joshwenke
I've been meaning to write up some documentation on the config, just been so busy, apologies.
Bungee teleport default sets the default teleportation type for bungee teleports, i.e. either server-based or location-based. So you have LOCATION or SERVER. LOCATION teleporting the player to the position you set on the remote server, SERVER teleporting the player to their last location on the remote server. Its the default setting for bungee gates if you don't use the "/gate setbungeetype" command.
The customBungeeMessages setting decides whether to send a custom message to all players on the server informing them they have teleported to another server or from another server.
I am having weird trouble with this i have bungee set up fine and i have ancient gates reloaded set up fine i can make a portal on each separate server but they will not link. in the to server it says the in question gate does not exist.
Edit: Ive also setup the comms in the config as directed
Link can only be made in the config, in game editing has no use, does not not exist error is all that is achieved. "Linked portals only work if player first logs in through the proxy server "bungee hub server" player is sent back through the same portal During this if player is left in the portal a second to long he is sent on a loop of the portal If server is reloaded link is lost, port is left bound until full server stop Portals "servers" "comms" are almost to much of a hassle to link Instructions were followed no results, pastebin coppied still no results
@SykoCraft
I'm sorry but I can't make out what you are trying to tell me amongst the rambling.
AncientGates v1.7.0 had an issue whereby it would not find the gate id of the remote server. This was fixed in AncientGates v1.7.1.
If you are setting your "to" location, make sure it is not set within the catchment zone of any portal blocks otherwise you can cause the player to get stuck in a continuous loop.
@peewi96
Sorry that was posted near 3 am. After a long day of errors. Im using the latest bukkit build of acient gates and most of the time it wouldnt bind to the comms port, then when it did, it wouldnt recognise the gate id
@SykoCraft
Ok, I see what you are saying now. If it is not binding to the comms port then the port is conflicting with another.
Make sure all your comms ports are unique amongst each other and that they don't conflict with other ports running on the server.
Only one instance of a port binding can exist.
@peewi96
It is working now, a server reload can cause an error in port binding. And even with the fix in 1.7.1 it still has troube finding the gate id
server.json is not getting created -_- laters versions ob Spigot and Bungiee :/
Server.json file is created when a server is added ingame
hi guys I keep getting erros when setting it up for Bungee, here is what I do!
1. create a gate in hub server using /gate create [gate name] 2. stand in the gate in hub server 3. then /gate setfrom [gate name] 4. then goto other server (games server) 5. stand in a location on that server 6. then type /gate setto [gate name] [server from] (server from is hub)
then I open the gate, but I either get the message that the gate goes no where or the gate with the ID does not exist. Now I only see to teleport a few block away from the portal despite doing the "setto" from another server
Could someone please post a tutorial or an explaination on how to exactly set up gates between two servers.
@Ubique1964
PM me a pastebin.com of all your AncientGates config files for each server.
I am very impressed with this plugin. I realized that my servers would become interconnected with portals after using the socket comm. At first I thought it would be difficult to set the commands, but it really is a breeze once you designate a port and password.
PM me if you have any questions.
Thanks for such an awesome plugin! Now i can take my server to the multisever network level!!!
@GrumpleStache
Thanks =)
Hey again peewi,
I have a question about the recent update. I have a server hub which connects to all my different servers via bungee, so previously everything works pretty fine. Now, the problem with the new update I'm having is that the gates no longer go to their "TO" location - they just teleport you back to your last location on the server.
I've tried changing bungeetypes to SERVER and LOCATION both, same thing each time. Is this functionality working properly? Or did I break something? I am running your latest dev build (#61) and also tried your latest release build (#59). Same thing.
an example of a portal in the JSON db:
Note, both these portals go to the same server (minigames) - but different worlds in each. However, doesn't matter which portal I go through, each one takes me to my previous location before leaving the server (which is in a 3rd world called "world"). Thoughts?