sync this T.T

This commit is contained in:
Xephi 2013-08-05 18:48:42 +02:00
parent 84d362196c
commit f585d1012a

View File

@ -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() {