playit-cloud / playit-minecraft-plugin

A Minecraft plugin to make your server public without port forwarding using playit.gg
https://playit.gg
32 stars 7 forks source link

Feature Parity with native? #12

Open AndrewChqng opened 1 year ago

AndrewChqng commented 1 year ago

Hi, not sure how feasible this would be but would it be possible to make it more similar to the executable? It's absolutely fine if not I'll just continue using the linux executable but for my use-case I don't want to change the ip of my server again (kind of promised them it'd be the last time). I can see I can change the agent through the web interface but it errors out as below (ip removed)

As I also use squaremap port 8080 and geyser port 18920 this also adds to the complication

[13:03:09] [Thread-15/INFO]: [gg.playit.minecraft.PlayitManager] starting tcp tunnel for client
[13:03:09] [Thread-15/INFO]: [gg.playit.minecraft.PlayitTcpTunnel] start connection to /[<ipv6 was here>]:43785 to claim client
[13:03:09] [nioEventLoopGroup-2-1/INFO]: [gg.playit.minecraft.PlayitTcpTunnel] connected to tunnel server, sending claim token
[13:03:09] [nioEventLoopGroup-2-1/INFO]: [gg.playit.minecraft.PlayitTcpTunnel] claim token sent
[13:03:09] [nioEventLoopGroup-2-1/INFO]: [gg.playit.minecraft.PlayitTcpTunnel] connection to tunnel server has been established
[13:03:09] [nioEventLoopGroup-2-1/INFO]: [gg.playit.minecraft.PlayitTcpTunnel] Reflect: ReflectionHelper{ServerConnection=class net.minecraft.server.network.ServerConnection, LegacyPingHandler=class net.minecraft.server.network.LegacyPingHandler, MinecraftServer=class net.minecraft.server.MinecraftServer, PacketSplitter=class net.minecraft.network.PacketSplitter, PacketDecoder=class net.minecraft.network.PacketDecoder, EnumProtocolDirection=class net.minecraft.network.protocol.EnumProtocolDirection, PacketPrepender=class net.minecraft.network.PacketPrepender, PacketEncoder=class net.minecraft.network.PacketEncoder, NetworkManagerServer=class net.minecraft.network.NetworkManagerServer, NetworkManager=class net.minecraft.network.NetworkManager, HandshakeListener=class net.minecraft.server.network.HandshakeListener, PacketListener=interface net.minecraft.network.PacketListener, CraftServer=class org.bukkit.craftbukkit.v1_19_R1.CraftServer}
[13:03:09] [nioEventLoopGroup-2-1/WARN]: [gg.playit.minecraft.ReflectionHelper] failed to call setListener: java.lang.NoSuchMethodException: setListener
[13:03:09] [nioEventLoopGroup-2-1/WARN]: [gg.playit.minecraft.ReflectionHelper] failed to set packetListenerjava.lang.NoSuchFieldException: packetListener
[13:03:09] [nioEventLoopGroup-2-1/WARN]: [gg.playit.minecraft.ReflectionHelper] failed set field connections, error: java.lang.NoSuchFieldException: connections
[13:03:09] [nioEventLoopGroup-2-1/INFO]: [gg.playit.minecraft.PlayitTcpTunnel] added channel to minecraft server
[13:03:10] [Thread-15/INFO]: [gg.playit.minecraft.PlayitManager] got new client: NewClient{connectAddr=<ip was here>:18921, peerAddr=85.115.53.202:63776, claimAddress=[<ipv6 was here>]:43785, claimToken=[<claim token was here>], tunnelServerId=15490, dataCenterId=14}

Many Thanks and greatly appreciated!