Add debug logging for teleports (relates to #1521)

This commit is contained in:
ljacqu
2018-05-13 22:52:41 +02:00
parent b5c028301b
commit c96e28f726
2 changed files with 11 additions and 2 deletions
@@ -198,9 +198,11 @@ public class SpawnLoader implements Reloadable {
// ignore
}
if (spawnLoc != null) {
ConsoleLogger.debug("Spawn location determined as `{0}` for world `{1}`", spawnLoc, world.getName());
return spawnLoc;
}
}
ConsoleLogger.debug("Fall back to default world spawn location. World: `{0}`", world.getName());
return world.getSpawnLocation(); // return default location
}