NameManager > Bukkit

This commit is contained in:
Andrzej Pomirski 2014-06-22 14:33:02 +02:00
parent f6457e3d47
commit 2a89fb345b
2 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ public class ServerAccountCorrector implements Listener {
event.setAdded(true);
return;
} else {
target = Bukkit.getOfflinePlayer(SERVER_ECONOMY_ACCOUNT).getUniqueId();
target = NameManager.getUUID(SERVER_ECONOMY_ACCOUNT);
}
event.setAdded(true);
@ -51,7 +51,7 @@ public class ServerAccountCorrector implements Listener {
event.setSubtracted(true);
return;
} else {
target = Bukkit.getOfflinePlayer(SERVER_ECONOMY_ACCOUNT).getUniqueId();
target = NameManager.getUUID(SERVER_ECONOMY_ACCOUNT);
}
event.setSubtracted(true);
@ -72,7 +72,7 @@ public class ServerAccountCorrector implements Listener {
event.hasEnough(true);
return;
} else {
target = Bukkit.getOfflinePlayer(SERVER_ECONOMY_ACCOUNT).getUniqueId();
target = NameManager.getUUID(SERVER_ECONOMY_ACCOUNT);
}
CurrencyCheckEvent currencyCheckEvent = new CurrencyCheckEvent(event.getAmount(), target, event.getWorld());
@ -105,7 +105,7 @@ public class ServerAccountCorrector implements Listener {
event.setAmount(BigDecimal.valueOf(Double.MAX_VALUE));
return;
} else {
target = Bukkit.getOfflinePlayer(SERVER_ECONOMY_ACCOUNT).getUniqueId();
target = NameManager.getUUID(SERVER_ECONOMY_ACCOUNT);
}
CurrencyAmountEvent currencyAmountEvent = new CurrencyAmountEvent(target, event.getWorld());

View File

@ -47,7 +47,7 @@ public class TaxModule implements Listener {
BigDecimal tax = getTax(event.getAmount(), taxAmount);
if (!Economy.getServerAccountName().isEmpty()) {
CurrencyAddEvent currencyAddEvent = new CurrencyAddEvent(tax, Bukkit.getOfflinePlayer(Economy.getServerAccountName()).getUniqueId(), event.getWorld());
CurrencyAddEvent currencyAddEvent = new CurrencyAddEvent(tax, NameManager.getUUID(Economy.getServerAccountName()), event.getWorld());
ChestShop.callEvent(currencyAddEvent);
}