Language for placeholder missing fix

This commit is contained in:
Esophose 2019-04-27 14:41:44 -06:00
parent 276888a1cc
commit 4c777dee3a
3 changed files with 9 additions and 4 deletions

View File

@ -5,6 +5,7 @@ import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.plugin.RegisteredServiceProvider;
@ -53,9 +54,9 @@ public class EconomyManager {
Bukkit.getServer().getPluginManager().callEvent(new PlayerWithdrawMoneyEvent(player, money));
}
public boolean hasPermission(String world, OfflinePlayer player, String perm) {
public boolean hasPermission(String world, OfflinePlayer offlinePlayer, String perm) {
if (permission != null)
return permission.playerHas(world, player, perm);
return permission.playerHas(world, offlinePlayer, perm);
return false;
}

View File

@ -52,8 +52,7 @@ public class LeaderboardManager {
for (int i = 0; i < visitManager.getIslands().size(); i++) {
UUID ownerUUID = (UUID) visitManager.getIslands().keySet().toArray()[i];
if (enableExemptions && economyManager.hasPermission(
worldManager.getWorld(IslandWorld.Normal).getName(),
if (enableExemptions && economyManager.hasPermission(worldManager.getWorld(IslandWorld.Normal).getName(),
Bukkit.getOfflinePlayer(ownerUUID),
"fabledskyblock.island.top.exempt"))
continue;

View File

@ -1234,6 +1234,11 @@ Placeholder:
Message: "&c0"
Non-empty:
Message: "&f%placeholder"
fabledskyblock_island_bank_balance_formatted:
Empty:
Message: "&c0"
Non-empty:
Message: "&f%placeholder"
fabledskyblock_island_leaderboard_level_rank:
Empty:
Message: "&c0"