mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Prevent using /museum to bypass pervisit restrictions
This commit is contained in:
parent
288d5c63fc
commit
4ad3754f4c
@ -64,6 +64,7 @@ namespace MCGalaxy.Commands.World {
|
||||
lvl.MapName = mapName;
|
||||
SetLevelProps(lvl);
|
||||
Level.LoadMetadata(lvl);
|
||||
if (!lvl.CanJoin(p)) return;
|
||||
|
||||
p.Loading = true;
|
||||
Entities.DespawnEntities(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user