Changes EconomyHandler method names to be more consistent

This commit is contained in:
2021-10-15 19:25:31 +02:00
parent d45af537cd
commit e2c91c1feb
5 changed files with 17 additions and 17 deletions

View File

@ -405,9 +405,9 @@ public final class PermissionHelper {
}
//Player cannot pay for teleportation
int cost = EconomyHandler.getUseCost(player, entrancePortal, destination);
int cost = EconomyHandler.getDefaultUseCost(player, entrancePortal, destination);
if (cost > 0) {
return !EconomyHelper.payTeleportFee(entrancePortal, player, cost);
return EconomyHelper.cannotPayTeleportFee(entrancePortal, player, cost);
}
return false;
}