mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-23 00:57:35 +01:00
sync this T.T
This commit is contained in:
parent
84d362196c
commit
f585d1012a
@ -132,7 +132,7 @@ public class Management {
|
|||||||
PlayerCache.getInstance().addPlayer(auth);
|
PlayerCache.getInstance().addPlayer(auth);
|
||||||
final LimboPlayer limbo = LimboCache.getInstance()
|
final LimboPlayer limbo = LimboCache.getInstance()
|
||||||
.getLimboPlayer(name);
|
.getLimboPlayer(name);
|
||||||
PlayerAuth getAuth = database.getAuth(name);
|
final PlayerAuth getAuth = database.getAuth(name);
|
||||||
if (limbo != null) {
|
if (limbo != null) {
|
||||||
Bukkit.getScheduler().runTask(plugin,
|
Bukkit.getScheduler().runTask(plugin,
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
@ -151,10 +151,15 @@ public class Management {
|
|||||||
.getName()))) {
|
.getName()))) {
|
||||||
if ((Settings.isSaveQuitLocationEnabled)
|
if ((Settings.isSaveQuitLocationEnabled)
|
||||||
&& (getAuth.getQuitLocY() != 0)) {
|
&& (getAuth.getQuitLocY() != 0)) {
|
||||||
utils.packCoords(getAuth.getQuitLocX(),
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
getAuth.getQuitLocY(),
|
@Override
|
||||||
getAuth.getQuitLocZ(),
|
public void run() {
|
||||||
getAuth.getWorld(), player);
|
utils.packCoords(getAuth.getQuitLocX(),
|
||||||
|
getAuth.getQuitLocY(),
|
||||||
|
getAuth.getQuitLocZ(),
|
||||||
|
getAuth.getWorld(), player);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
Bukkit.getScheduler().runTask(plugin,
|
Bukkit.getScheduler().runTask(plugin,
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
@ -207,10 +212,15 @@ public class Management {
|
|||||||
});
|
});
|
||||||
} else if ((Settings.isSaveQuitLocationEnabled)
|
} else if ((Settings.isSaveQuitLocationEnabled)
|
||||||
&& (getAuth.getQuitLocY() != 0)) {
|
&& (getAuth.getQuitLocY() != 0)) {
|
||||||
utils.packCoords(getAuth.getQuitLocX(),
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
getAuth.getQuitLocY(),
|
@Override
|
||||||
getAuth.getQuitLocZ(),
|
public void run() {
|
||||||
getAuth.getWorld(), player);
|
utils.packCoords(getAuth.getQuitLocX(),
|
||||||
|
getAuth.getQuitLocY(),
|
||||||
|
getAuth.getQuitLocZ(),
|
||||||
|
getAuth.getWorld(), player);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
Bukkit.getScheduler().runTask(plugin,
|
Bukkit.getScheduler().runTask(plugin,
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
|
Loading…
Reference in New Issue
Block a user