AuthMeReloaded icon indicating copy to clipboard operation
AuthMeReloaded copied to clipboard

Players that disconnect inside of a portal can't log in

Open animeavi opened this issue 5 years ago • 8 comments

So in my server one of the players got disconnected after going through a portal and couldn't log back in because they couldn't open the chat, someone had to destroy the portal.

animeavi avatar Jul 30 '19 08:07 animeavi

Hi @animeavi , can you post the content of your config.yml? (please copy and paste using https://pastebin.com/ ).

Thank you

hex3l avatar Aug 05 '19 18:08 hex3l

Sorry for late answer, it's the default one, I didn't really change anything.

animeavi avatar Aug 06 '19 01:08 animeavi

Hey @animeavi , You should try to set this in your config.yml: teleportUnAuthedToSpawn: true

Using this option AuthMe will teleport the player to the spawn before the login, avoiding the whole "stuck in a portal" situation ;)

hex3l avatar Aug 06 '19 12:08 hex3l

IMHO this is still a bug though—I might want to NOT have players be teleported to the spawn (it's a configuration, after all) and I still would like for my players not to be stuck in any case.

ljacqu avatar Aug 06 '19 15:08 ljacqu

@ljacqu we can't prevent that, it's just vanilla design, the client can't send commands while in portals. I wouldn't consider this a bug.

sgdc3 avatar Aug 06 '19 15:08 sgdc3

I mean we can call it an improvement if you prefer, rather than a bug, but IMHO we could check on join if the player is inside a portal and then send him to spawn.

ljacqu avatar Aug 06 '19 17:08 ljacqu

I've run into the same problem. How can you say that it's not a bug when player just have no possibility of logging in?

I've made a solution to this in Skript:

on join:
  block at location is nether portal block
  loop blocks in radius 2 around player:
    loop-value is air
    block above loop-value is air
    block below loop-value is solid
    teleport player to loop-value

It's very simple and just works. When the player joins the server, it checks if they're in the portal. If they are, it looks around the player for the air block which has an air above and some solid block below, and then it teleports the player to that block. You can just save that snippet to authme-portal-fix.sk or something, reload Skript and it's done.

oskarkk avatar Mar 13 '21 04:03 oskarkk

on join: block at location is nether portal block loop blocks in radius 2 around player: loop-value is air block above loop-value is air block below loop-value is solid teleport player to loop-value

I've run into the same problem. How can you say that it's not a bug when player just have no possibility of logging in?

I've made a solution to this in Skript:

on join:
  block at location is nether portal block
  loop blocks in radius 2 around player:
    loop-value is air
    block above loop-value is air
    block below loop-value is solid
    teleport player to loop-value

It's very simple and just works. When the player joins the server, it checks if they're in the portal. If they are, it looks around the player for the air block which has an air above and some solid block below, and then it teleports the player to that block. You can just save that snippet to authme-portal-fix.sk or something, reload Skript and it's done.

Thanks man!

zentixua avatar Jan 06 '22 19:01 zentixua