mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 02:55:46 +01:00
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:
parent
4d174993ff
commit
3f3d611731
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user