From a94b3cb6b72576ac73340d61e9bf9fd6ed6c2ace Mon Sep 17 00:00:00 2001 From: drtshock Date: Thu, 12 Feb 2015 09:21:17 -0600 Subject: [PATCH] Update to 1.8 Spigot-API. Breaks servers before 1.7.9-R0.3 --- pom.xml | 10 +++++----- .../factions/scoreboards/sidebar/FDefaultSidebar.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 54b2aafd..e705ee7e 100644 --- a/pom.xml +++ b/pom.xml @@ -73,9 +73,9 @@ - org.bukkit - bukkit - 1.7.9-R0.2 + org.spigotmc + spigot-api + 1.8-R0.1-SNAPSHOT net.milkbowl.vault @@ -139,8 +139,8 @@ http://repo.ess3.net/content/repositories/essdev - bukkit-repo - http://repo.bukkit.org/content/groups/public/ + spigot-repo + https://hub.spigotmc.org/nexus/content/groups/public/ maven.sk89q.com diff --git a/src/main/java/com/massivecraft/factions/scoreboards/sidebar/FDefaultSidebar.java b/src/main/java/com/massivecraft/factions/scoreboards/sidebar/FDefaultSidebar.java index 19924aef..da4b1edf 100644 --- a/src/main/java/com/massivecraft/factions/scoreboards/sidebar/FDefaultSidebar.java +++ b/src/main/java/com/massivecraft/factions/scoreboards/sidebar/FDefaultSidebar.java @@ -33,7 +33,7 @@ public class FDefaultSidebar extends FSidebarProvider { private String replace(FPlayer fplayer, String s) { String faction = !fplayer.getFaction().isNone() ? fplayer.getFaction().getTag() : TL.GENERIC_FACTIONLESS.toString(); String powerBoost = String.valueOf((int) fplayer.getPowerBoost()); - s = s.replace("{name}", fplayer.getName()).replace("{power}", String.valueOf(fplayer.getPowerRounded())).replace("{balance}", String.valueOf(Econ.getFriendlyBalance(fplayer.getPlayer().getUniqueId()))).replace("{faction}", faction).replace("{maxPower}", String.valueOf(fplayer.getPowerMaxRounded())).replace("{totalOnline}", String.valueOf(Bukkit.getServer().getOnlinePlayers().length)).replace("{powerBoost}", powerBoost); + s = s.replace("{name}", fplayer.getName()).replace("{power}", String.valueOf(fplayer.getPowerRounded())).replace("{balance}", String.valueOf(Econ.getFriendlyBalance(fplayer.getPlayer().getUniqueId()))).replace("{faction}", faction).replace("{maxPower}", String.valueOf(fplayer.getPowerMaxRounded())).replace("{totalOnline}", String.valueOf(Bukkit.getServer().getOnlinePlayers().size())).replace("{powerBoost}", powerBoost); return ChatColor.translateAlternateColorCodes('&', s); } }