Selaa lähdekoodia

Fixing file not found exception for FlatFile leaderboards

nossr50 13 vuotta sitten
vanhempi
sitoutus
bede658d94
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/main/java/com/gmail/nossr50/Leaderboard.java

+ 1 - 1
src/main/java/com/gmail/nossr50/Leaderboard.java

@@ -209,7 +209,7 @@ public class Leaderboard {
      * @return the requested leaderboard information
      */
     public static String[] retrieveInfo(String skillName, int pagenumber) {
-        String theLocation = leaderboardsDirectory + skillName + ".mcmmo";
+        String theLocation = leaderboardsDirectory + skillName.toLowerCase() + ".mcmmo";
 
         try {
             FileReader file = new FileReader(theLocation);