Allow lobby players to warp in-region.

Historically, we've seen plugins try to "auto-correct" the falling-through-the-world bug in Minecraft when chunks load too slowly. The plugins often solve this by force-warping until the player is stable, and blocking those teleport events are going to cause heavy "not allowed" spam.
This commit is contained in:
Andreas Troelsen 2018-05-02 00:48:33 +02:00
parent 4d174993ff
commit 3f3d611731

View File

@ -1205,7 +1205,7 @@ public class ArenaListener
if (region.contains(from)) {
if (region.contains(to)) {
// Inside -> inside
if (!arena.inArena(p)) {
if (!(arena.inArena(p) || arena.inLobby(p))) {
arena.getMessenger().tell(p, Msg.WARP_TO_ARENA);
return TeleportResponse.REJECT;
}