Fixing mcrank reading from FFS when on SQL

This commit is contained in:
nossr50 2013-01-15 20:09:49 -08:00
parent 92fc00bb0a
commit 793538d4ef

View File

@ -20,6 +20,7 @@ public class McrankCommand implements CommandExecutor {
@Override @Override
public boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) { public boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) {
//I'm being lazy and making this only work on yourself, I or someone else will make this work on other players in the future :D //I'm being lazy and making this only work on yourself, I or someone else will make this work on other players in the future :D
if(!Config.getInstance().getUseMySQL())
Leaderboard.updateLeaderboards(); //Make sure the information is up to date Leaderboard.updateLeaderboards(); //Make sure the information is up to date
if(arg0 instanceof Player) { if(arg0 instanceof Player) {