mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +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(from)) {
|
||||||
if (region.contains(to)) {
|
if (region.contains(to)) {
|
||||||
// Inside -> inside
|
// Inside -> inside
|
||||||
if (!arena.inArena(p)) {
|
if (!(arena.inArena(p) || arena.inLobby(p))) {
|
||||||
arena.getMessenger().tell(p, Msg.WARP_TO_ARENA);
|
arena.getMessenger().tell(p, Msg.WARP_TO_ARENA);
|
||||||
return TeleportResponse.REJECT;
|
return TeleportResponse.REJECT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user