mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-26 04:05:28 +01:00
Fix Teleport issues
This commit is contained in:
parent
6ad701c699
commit
b403374c2a
@ -133,22 +133,19 @@ public class ProcessSyncronousPlayerLogin implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!Settings.noTeleport) {
|
if (!Settings.noTeleport) {
|
||||||
// Teleport the player
|
// Teleport
|
||||||
if(Settings.isForceSpawnLocOnJoinEnabled && Settings.getForcedWorlds.contains(player.getWorld().getName())) {
|
if (Settings.isTeleportToSpawnEnabled && !Settings.isForceSpawnLocOnJoinEnabled && Settings.getForcedWorlds.contains(player.getWorld().getName())) {
|
||||||
// If we have force the spawn location on join
|
if (Settings.isSaveQuitLocationEnabled && auth.getQuitLocY() != 0) {
|
||||||
teleportToSpawn();
|
packQuitLocation();
|
||||||
} else {
|
|
||||||
if (Settings.isTeleportToSpawnEnabled) {
|
|
||||||
// If and only if teleport unauthed to spawn is activate
|
|
||||||
teleportBackFromSpawn();
|
|
||||||
} else {
|
} else {
|
||||||
if (Settings.isSaveQuitLocationEnabled && auth.getQuitLocY() != 0) {
|
teleportBackFromSpawn();
|
||||||
// Teleport the player on the saved location
|
|
||||||
packQuitLocation();
|
|
||||||
} else {
|
|
||||||
// Do not move the player from his position
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
} else if (Settings.isForceSpawnLocOnJoinEnabled && Settings.getForcedWorlds.contains(player.getWorld().getName())) {
|
||||||
|
teleportToSpawn();
|
||||||
|
} else if (Settings.isSaveQuitLocationEnabled && auth.getQuitLocY() != 0) {
|
||||||
|
packQuitLocation();
|
||||||
|
} else {
|
||||||
|
teleportBackFromSpawn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user