trgwii / TeMiCross

Minecraft <-> Telegram chat bridge
34 stars 3 forks source link

not whitelisted players are shown as online #2

Open jkhsjdhjs opened 5 years ago

jkhsjdhjs commented 5 years ago

When a player that is not whitelisted tries to join the server, the bridge will send a join message and display the player as online in /list.

In the following example gammelgamer joins the server and Cornelius_Y tries to join the server, but is disconnected because of the whitelist.

[04:32:13] [User Authenticator #94/INFO]: UUID of player gammelgamer is 96cf2600-7bc4-4dbc-8257-6df27beb4ac4
[04:32:13] [Server thread/INFO]: gammelgamer[/*ip*:55697] logged in with entity id 1824605 at (387.69999998807907, 63.0, -582.8691095529437)
[04:32:13] [Server thread/INFO]: gammelgamer joined the game
[04:34:25] [User Authenticator #95/INFO]: UUID of player Cornelius_Y is ca5bfccc-f243-45e0-b53e-ad2096062435
[04:34:25] [Server thread/INFO]: Disconnecting com.mojang.authlib.GameProfile@3557a2f2[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@68c9705c]},legacy=false] (/*ip*:50442): You are not white-listed on this server!
[04:34:25] [Server thread/INFO]: com.mojang.authlib.GameProfile@3557a2f2[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@68c9705c]},legacy=false] (/*ip*:50442) lost connection: You are not white-listed on this server!
[04:34:28] [User Authenticator #96/INFO]: UUID of player Cornelius_Y is ca5bfccc-f243-45e0-b53e-ad2096062435
[04:34:28] [Server thread/INFO]: Disconnecting com.mojang.authlib.GameProfile@18c3249b[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@571a1dcc]},legacy=false] (/*ip*:50444): You are not white-listed on this server!
[04:34:28] [Server thread/INFO]: com.mojang.authlib.GameProfile@18c3249b[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@571a1dcc]},legacy=false] (/*ip*:50444) lost connection: You are not white-listed on this server!
[04:34:37] [User Authenticator #97/INFO]: UUID of player Cornelius_Y is ca5bfccc-f243-45e0-b53e-ad2096062435
[04:34:37] [Server thread/INFO]: Disconnecting com.mojang.authlib.GameProfile@3fa070f0[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@29cc14d]},legacy=false] (/*ip*:50446): You are not white-listed on this server!
[04:34:37] [Server thread/INFO]: com.mojang.authlib.GameProfile@3fa070f0[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@29cc14d]},legacy=false] (/*ip*:50446) lost connection: You are not white-listed on this server!
[04:34:43] [User Authenticator #98/INFO]: UUID of player Cornelius_Y is ca5bfccc-f243-45e0-b53e-ad2096062435
[04:34:43] [Server thread/INFO]: Disconnecting com.mojang.authlib.GameProfile@79b47982[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@4cf39c99]},legacy=false] (/*ip*:50448): You are not white-listed on this server!
[04:34:43] [Server thread/INFO]: com.mojang.authlib.GameProfile@79b47982[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@4cf39c99]},legacy=false] (/*ip*:50448) lost connection: You are not white-listed on this server!
[04:34:47] [Server thread/INFO]: gammelgamer lost connection: Disconnected
[04:34:47] [Server thread/INFO]: gammelgamer left the game

telegram join messages

Screenshot of the list command: telegram /list Cornelius_Y is shown as online even though he isn't.

trgwii commented 4 years ago

So the fix for this should probably be to add: [04:34:43] [Server thread/INFO]: Disconnecting com.mojang.authlib.GameProfile@79b47982[id=ca5bfccc-f243-45e0-b53e-ad2096062435,name=Cornelius_Y,properties={textures=[com.mojang.authlib.properties.Property@4cf39c99]},legacy=false] (/*ip*:50448): You are not white-listed on this server! As a valid leave message I think

trgwii commented 4 years ago

For reference, this is using the vanilla server? Which game version is this?

jkhsjdhjs commented 4 years ago

Yes, the server was running on snapshot 19w38b.