Because making it upper case broke all the things.

This commit is contained in:
GJ
2012-06-06 18:02:22 -04:00
parent 0a44a74f59
commit 2f15c71412
66 changed files with 318 additions and 305 deletions

View File

@ -8,7 +8,7 @@ import java.util.HashMap;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import com.gmail.nossr50.McMMO;
import com.gmail.nossr50.mcMMO;
import com.gmail.nossr50.datatypes.PlayerProfile;
public class Users {
@ -18,10 +18,10 @@ public class Users {
* Load users.
*/
public static void loadUsers() {
new File(McMMO.flatFileDirectory).mkdir();
new File(McMMO.leaderboardDirectory).mkdir();
new File(mcMMO.flatFileDirectory).mkdir();
new File(mcMMO.leaderboardDirectory).mkdir();
File theDir = new File(McMMO.usersFile);
File theDir = new File(mcMMO.usersFile);
if (!theDir.exists()) {
try {
@ -79,7 +79,7 @@ public class Users {
* @param playerName The name of the player to remove
*/
public static void removeUserByName(String playerName) {
players.remove(McMMO.p.getServer().getOfflinePlayer(playerName));
players.remove(mcMMO.p.getServer().getOfflinePlayer(playerName));
}
/**
@ -99,7 +99,7 @@ public class Users {
* @return the player's profile
*/
public static PlayerProfile getProfileByName(String playerName) {
Player player = McMMO.p.getServer().getPlayer(playerName);
Player player = mcMMO.p.getServer().getPlayer(playerName);
PlayerProfile profile = players.get(player);
if (profile == null) {
@ -110,7 +110,7 @@ public class Users {
return newProfile;
}
else {
McMMO.p.getLogger().severe("getProfileByName(" + playerName + ") just returned null :(");
mcMMO.p.getLogger().severe("getProfileByName(" + playerName + ") just returned null :(");
for (StackTraceElement ste : new Throwable().getStackTrace()) {
System.out.println(ste);