Stargate Rewritten

Stargate Rewritten

241 Downloads

[TMS TMP005] U gates fail to connect.

Pheotis opened this issue ยท 6 comments

commented
test1
test2
server1
U
test2
test1
server2
U

does not appear to work within the test environment.
image
image

commented

I can't replicate this with the most recent release

commented

Are you sure this is not a permission issue, where you lack permission to create a bungee portal or something like that? Although there should be a creation error message or something.

But in essence: this portal is not a bungee portal, but a fixed portal. This is because it has certain formatting on a sign that makes it so. A legacy bungee portal has the following formatting;

name
destination
destinationServer
LEGACY BUNGEE

It should also be completely unable to show the [Disconnected] message, as it's impossible to know whether it is connected or not, as this is in another server. For that it requires the portals to share a database, or alternativly requiring velocity or similar as a proxy

commented

I am confident that the portal in question had the U flag, and that sufficient permissions were available.
Having said that, I am also currently unable to reproduce this, so I am going to close this issue as CNR for now.

commented

I'm very confident that the portal did not have the U flag, because of this:

        String[] lines = new String[4];
        lines[0] = super.colorDrawer.formatPortalName(this, HighlightingStyle.MINUS_SIGN);
        lines[1] = super.colorDrawer.formatPortalName(getDestination(), HighlightingStyle.LESSER_GREATER_THAN);
        lines[2] = super.colorDrawer.formatStringWithHiglighting(serverDestination, HighlightingStyle.SQUARE_BRACKETS);
        lines[3] = super.colorDrawer.formatLine(bungeeString);
        getGate().drawControlMechanisms(lines, !hasFlag(PortalFlag.ALWAYS_ON));

This is the code that draws the sign for legacy bungee. Note that the last line of the sign (line 3) is the bungee translatable message.

So the portal could not have been bungee

commented

I don't understand this issue. You made 2 portals on 2 different custom networks and tried to connect the two. Or is this legacy bungee gates? The behavior of that sign does not match with legacy bungee gates though.

commented

Whoops; I forgot to show the U flag on the syntax example in the initial issue post - -fixed.
Yes, this is legacy bungee gates.

The syntax was based on the U flag's description in the current documentation
image