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 net.milkbowl.vault.permission.Permission;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.RegisteredServiceProvider;
@ -53,9 +54,9 @@ public class EconomyManager {
Bukkit.getServer().getPluginManager().callEvent(new PlayerWithdrawMoneyEvent(player, money)); 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) if (permission != null)
return permission.playerHas(world, player, perm); return permission.playerHas(world, offlinePlayer, perm);
return false; return false;
} }

View File

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

View File

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