From 419937f62ee79846496f939cba60546282dbd6ce Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 5 Feb 2013 12:56:31 -0500 Subject: [PATCH] Refactoring - these should be with the rest of the DB files. --- .../java/com/gmail/nossr50/commands/player/McrankCommand.java | 2 +- .../java/com/gmail/nossr50/commands/player/MctopCommand.java | 2 +- .../com/gmail/nossr50/{util => database}/Leaderboard.java | 4 ++-- .../com/gmail/nossr50/{datatypes => database}/PlayerStat.java | 2 +- src/main/java/com/gmail/nossr50/mcMMO.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/main/java/com/gmail/nossr50/{util => database}/Leaderboard.java (99%) rename src/main/java/com/gmail/nossr50/{datatypes => database}/PlayerStat.java (79%) diff --git a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java index 7d7bd9200..d3839d8ac 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java @@ -8,13 +8,13 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; +import com.gmail.nossr50.database.Leaderboard; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.runnables.McRankAsync; import com.gmail.nossr50.skills.utilities.SkillTools; import com.gmail.nossr50.skills.utilities.SkillType; -import com.gmail.nossr50.util.Leaderboard; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.Users; diff --git a/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java b/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java index 7e6bf593b..51165af11 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java @@ -11,9 +11,9 @@ import org.bukkit.command.CommandSender; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.database.Database; +import com.gmail.nossr50.database.Leaderboard; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.skills.utilities.SkillTools; -import com.gmail.nossr50.util.Leaderboard; import com.gmail.nossr50.util.Misc; public class MctopCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/util/Leaderboard.java b/src/main/java/com/gmail/nossr50/database/Leaderboard.java similarity index 99% rename from src/main/java/com/gmail/nossr50/util/Leaderboard.java rename to src/main/java/com/gmail/nossr50/database/Leaderboard.java index 8ea0d7caf..7390187f7 100644 --- a/src/main/java/com/gmail/nossr50/util/Leaderboard.java +++ b/src/main/java/com/gmail/nossr50/database/Leaderboard.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.util; +package com.gmail.nossr50.database; import java.io.BufferedReader; import java.io.FileReader; @@ -9,8 +9,8 @@ import java.util.HashMap; import java.util.List; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.datatypes.PlayerStat; import com.gmail.nossr50.skills.utilities.SkillType; +import com.gmail.nossr50.util.Misc; public final class Leaderboard { private static HashMap> playerStatHash = new HashMap>(); diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerStat.java b/src/main/java/com/gmail/nossr50/database/PlayerStat.java similarity index 79% rename from src/main/java/com/gmail/nossr50/datatypes/PlayerStat.java rename to src/main/java/com/gmail/nossr50/database/PlayerStat.java index 4c7caac45..3c6b9c324 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerStat.java +++ b/src/main/java/com/gmail/nossr50/database/PlayerStat.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.datatypes; +package com.gmail.nossr50.database; public class PlayerStat { public String name; diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 502a2b616..63e083dfc 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -30,6 +30,7 @@ import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.HiddenConfig; import com.gmail.nossr50.config.TreasuresConfig; import com.gmail.nossr50.database.Database; +import com.gmail.nossr50.database.Leaderboard; import com.gmail.nossr50.database.commands.McremoveCommand; import com.gmail.nossr50.database.commands.MmoupdateCommand; import com.gmail.nossr50.database.runnables.UserPurgeTask; @@ -60,7 +61,6 @@ import com.gmail.nossr50.spout.SpoutTools; import com.gmail.nossr50.spout.commands.MchudCommand; import com.gmail.nossr50.spout.commands.XplockCommand; import com.gmail.nossr50.util.Anniversary; -import com.gmail.nossr50.util.Leaderboard; import com.gmail.nossr50.util.Users; public class mcMMO extends JavaPlugin {