Use older version of Bukkit

For players on versions earlier than 1.7.10, our usage of
getOnlinePlayers() currently throws a NoSuchMethodError.
This commit is contained in:
eueln 2014-10-25 14:05:23 -05:00 committed by t00thpick1
parent 79c989bfc8
commit 17a95fc786
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.7.10-R0.1-SNAPSHOT</version>
<version>1.7.9-R0.2</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -74,7 +74,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.7.10-R0.1-SNAPSHOT</version>
<version>1.7.9-R0.2</version>
</dependency>
<dependency>
<groupId>net.milkbowl.vault</groupId>

View File

@ -35,7 +35,7 @@ public class FDefaultSidebar extends FSidebarProvider {
.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("{totalOnline}", String.valueOf(Bukkit.getServer().getOnlinePlayers().length));
return ChatColor.translateAlternateColorCodes('&', s);
}
}