mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-26 12:16:30 +01:00
Language for placeholder missing fix
This commit is contained in:
parent
276888a1cc
commit
4c777dee3a
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user