mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
NameManager > Bukkit
This commit is contained in:
parent
f6457e3d47
commit
2a89fb345b
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user