diff --git a/Changelog.txt b/Changelog.txt index 6d8df0c66..06e044820 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -17,6 +17,7 @@ Version 1.4.00-dev = Fixed Woodcutting accidentally using Mining double drop values. ! Changed how Tree Feller is handled, it should now put less stress on the CPU ! Changed Fisherman's Diet and Farmer's Diet to use two seperate config values + ! Major refactoring - please take note, this WILL break any mcMMO-related plugin not properly hooking into the API. Version 1.3.14 + Added new Hylian Luck skill to Herbalism. diff --git a/src/main/java/com/gmail/nossr50/api/AbilityAPI.java b/src/main/java/com/gmail/nossr50/api/AbilityAPI.java index da5dabb5e..5f1a630e9 100644 --- a/src/main/java/com/gmail/nossr50/api/AbilityAPI.java +++ b/src/main/java/com/gmail/nossr50/api/AbilityAPI.java @@ -2,7 +2,7 @@ package com.gmail.nossr50.api; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.AbilityType; +import com.gmail.nossr50.skills.AbilityType; import com.gmail.nossr50.util.Users; public class AbilityAPI { diff --git a/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java b/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java index 967d16c23..fdac4bc28 100644 --- a/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java +++ b/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java @@ -2,8 +2,8 @@ package com.gmail.nossr50.api; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.util.Skills; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Users; public final class ExperienceAPI { diff --git a/src/main/java/com/gmail/nossr50/api/SpoutToolsAPI.java b/src/main/java/com/gmail/nossr50/api/SpoutToolsAPI.java index ed9cba205..bbc397d43 100644 --- a/src/main/java/com/gmail/nossr50/api/SpoutToolsAPI.java +++ b/src/main/java/com/gmail/nossr50/api/SpoutToolsAPI.java @@ -5,7 +5,7 @@ import java.util.List; import org.bukkit.inventory.ItemStack; -import com.gmail.nossr50.datatypes.ToolType; +import com.gmail.nossr50.skills.ToolType; public final class SpoutToolsAPI { diff --git a/src/main/java/com/gmail/nossr50/commands/CommandHelper.java b/src/main/java/com/gmail/nossr50/commands/CommandHelper.java index c164ee0c9..852b3f230 100644 --- a/src/main/java/com/gmail/nossr50/commands/CommandHelper.java +++ b/src/main/java/com/gmail/nossr50/commands/CommandHelper.java @@ -4,10 +4,10 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class CommandHelper { diff --git a/src/main/java/com/gmail/nossr50/commands/general/AddlevelsCommand.java b/src/main/java/com/gmail/nossr50/commands/general/AddlevelsCommand.java index a25ab555e..ed8234b40 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/AddlevelsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/AddlevelsCommand.java @@ -9,10 +9,10 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class AddlevelsCommand implements CommandExecutor{ diff --git a/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java b/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java index cb8333541..f82426584 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java @@ -9,10 +9,10 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; //TODO: Any way we can make this work for offline use? diff --git a/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java b/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java index 5f84dc8a4..e3c5f6855 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java @@ -8,8 +8,8 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; 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/general/MmoeditCommand.java b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java index a45f48a9c..028cd9398 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java @@ -8,10 +8,10 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class MmoeditCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java b/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java index 9b1e56238..7074141db 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java @@ -7,8 +7,8 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Users; public class SkillResetCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java index 5022af756..ce3c0b386 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java @@ -8,11 +8,11 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.runnables.McRankAsync; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Leaderboard; -import com.gmail.nossr50.util.Skills; public class McrankCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/commands/mc/MctopCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/MctopCommand.java index aa59e7896..ead008063 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/MctopCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/MctopCommand.java @@ -10,12 +10,12 @@ import org.bukkit.command.CommandSender; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Database; import com.gmail.nossr50.util.Leaderboard; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; public class MctopCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/datatypes/McMMOPlayer.java b/src/main/java/com/gmail/nossr50/datatypes/McMMOPlayer.java index 03c666164..9e03670fe 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/McMMOPlayer.java +++ b/src/main/java/com/gmail/nossr50/datatypes/McMMOPlayer.java @@ -10,6 +10,8 @@ import com.gmail.nossr50.datatypes.mods.CustomTool; import com.gmail.nossr50.events.experience.McMMOPlayerXpGainEvent; import com.gmail.nossr50.party.Party; import com.gmail.nossr50.party.PartyManager; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.spout.huds.SpoutHud; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.ModChecks; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index 7a05e0fb7..7f9f7043c 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -9,9 +9,14 @@ import java.util.HashMap; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.config.SpoutConfig; import com.gmail.nossr50.party.Party; import com.gmail.nossr50.party.PartyManager; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.ToolType; +import com.gmail.nossr50.spout.SpoutConfig; +import com.gmail.nossr50.spout.huds.HudType; +import com.gmail.nossr50.spout.huds.SpoutHud; import com.gmail.nossr50.util.Database; import com.gmail.nossr50.util.Misc; diff --git a/src/main/java/com/gmail/nossr50/datatypes/popups/Menu.java b/src/main/java/com/gmail/nossr50/datatypes/popups/Menu.java index acf223eb0..092dea590 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/popups/Menu.java +++ b/src/main/java/com/gmail/nossr50/datatypes/popups/Menu.java @@ -6,12 +6,12 @@ import org.getspout.spoutapi.gui.InGameHUD; import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.datatypes.HudType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SpoutHud; import com.gmail.nossr50.datatypes.buttons.McmmoButton; import com.gmail.nossr50.datatypes.buttons.McmmoButton.Slot; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.spout.huds.HudType; +import com.gmail.nossr50.spout.huds.SpoutHud; public class Menu extends GenericPopup { private McmmoButton hudButton; diff --git a/src/main/java/com/gmail/nossr50/datatypes/popups/XpBar.java b/src/main/java/com/gmail/nossr50/datatypes/popups/XpBar.java index 0e48dd449..1eb10a3c7 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/popups/XpBar.java +++ b/src/main/java/com/gmail/nossr50/datatypes/popups/XpBar.java @@ -9,10 +9,10 @@ import org.getspout.spoutapi.gui.Widget; import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.config.SpoutConfig; -import com.gmail.nossr50.datatypes.HudType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.spout.SpoutConfig; +import com.gmail.nossr50.spout.huds.HudType; import com.gmail.nossr50.util.Misc; public class XpBar { diff --git a/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerExperienceEvent.java b/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerExperienceEvent.java index 534c493d8..a627e21b4 100644 --- a/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerExperienceEvent.java +++ b/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerExperienceEvent.java @@ -4,7 +4,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.event.player.PlayerEvent; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; /** * Generic event for mcMMO experience events. diff --git a/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerLevelUpEvent.java b/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerLevelUpEvent.java index fdbd2d8cf..4e1a1937d 100644 --- a/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerLevelUpEvent.java +++ b/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerLevelUpEvent.java @@ -2,7 +2,7 @@ package com.gmail.nossr50.events.experience; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; /** * Called when a user levels up in a skill diff --git a/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerXpGainEvent.java b/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerXpGainEvent.java index 4d3ef874a..77e29e070 100644 --- a/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerXpGainEvent.java +++ b/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerXpGainEvent.java @@ -2,7 +2,7 @@ package com.gmail.nossr50.events.experience; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; /** * Called when a player gains XP in a skill diff --git a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerDisarmEvent.java b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerDisarmEvent.java index e702cc8fb..d754e02ff 100644 --- a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerDisarmEvent.java +++ b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerDisarmEvent.java @@ -3,7 +3,7 @@ package com.gmail.nossr50.events.skills; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; public class McMMOPlayerDisarmEvent extends McMMOPlayerSkillEvent implements Cancellable { private boolean cancelled; diff --git a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java index d017c7c80..fc8a66d5f 100644 --- a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java +++ b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java @@ -4,7 +4,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.inventory.ItemStack; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; /** * Called just before a player repairs an object with mcMMO. diff --git a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerSkillEvent.java b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerSkillEvent.java index a844bd19f..db530bef0 100644 --- a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerSkillEvent.java +++ b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerSkillEvent.java @@ -4,7 +4,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.event.player.PlayerEvent; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; /** * Generic event for mcMMO skill handling. diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index eea4fc480..2ee5e7912 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -20,26 +20,26 @@ import org.getspout.spoutapi.sound.SoundEffect; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.datatypes.ToolType; import com.gmail.nossr50.events.fake.FakeBlockBreakEvent; import com.gmail.nossr50.events.fake.FakeBlockDamageEvent; import com.gmail.nossr50.events.fake.FakePlayerAnimationEvent; import com.gmail.nossr50.runnables.StickyPistonTracker; -import com.gmail.nossr50.skills.gathering.Excavation; -import com.gmail.nossr50.skills.gathering.Herbalism; -import com.gmail.nossr50.skills.gathering.WoodCutting; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; +import com.gmail.nossr50.skills.ToolType; +import com.gmail.nossr50.skills.excavation.Excavation; +import com.gmail.nossr50.skills.herbalism.Herbalism; import com.gmail.nossr50.skills.mining.MiningManager; import com.gmail.nossr50.skills.repair.Repair; import com.gmail.nossr50.skills.repair.Salvage; +import com.gmail.nossr50.skills.woodcutting.Woodcutting; import com.gmail.nossr50.spout.SpoutSounds; import com.gmail.nossr50.util.BlockChecks; import com.gmail.nossr50.util.ItemChecks; import com.gmail.nossr50.util.ModChecks; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class BlockListener implements Listener { @@ -179,15 +179,15 @@ public class BlockListener implements Listener { else if (BlockChecks.isLog(block) && Permissions.woodcutting(player)) { if (configInstance.getWoodcuttingRequiresTool()) { if (ItemChecks.isAxe(inHand)) { - WoodCutting.woodcuttingBlockCheck(player, block); + Woodcutting.woodcuttingBlockCheck(player, block); } } else { - WoodCutting.woodcuttingBlockCheck(player, block); + Woodcutting.woodcuttingBlockCheck(player, block); } if (!mcMMO.placeStore.isTrue(block) && profile.getAbilityMode(AbilityType.TREE_FELLER) && Permissions.treeFeller(player) && ItemChecks.isAxe(inHand)) { - WoodCutting.treeFeller(event); + Woodcutting.treeFeller(event); } } @@ -318,12 +318,12 @@ public class BlockListener implements Listener { if (configInstance.getWoodcuttingRequiresTool()) { if (ItemChecks.isAxe(inHand)) { event.setInstaBreak(true); - WoodCutting.leafBlower(player, block); + Woodcutting.leafBlower(player, block); } } else if (!inHand.getType().equals(Material.SHEARS)) { event.setInstaBreak(true); - WoodCutting.leafBlower(player, block); + Woodcutting.leafBlower(player, block); } } } diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index cf5a9bd8d..c11890bda 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java @@ -31,19 +31,19 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.events.fake.FakeEntityDamageByEntityEvent; import com.gmail.nossr50.events.fake.FakeEntityDamageEvent; import com.gmail.nossr50.party.PartyManager; import com.gmail.nossr50.runnables.BleedTimer; +import com.gmail.nossr50.skills.Combat; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.skills.acrobatics.AcrobaticsManager; import com.gmail.nossr50.skills.archery.Archery; import com.gmail.nossr50.skills.mining.MiningManager; import com.gmail.nossr50.skills.taming.TamingManager; -import com.gmail.nossr50.util.Combat; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class EntityListener implements Listener { diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 5c3b59f27..647a7ae49 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -26,23 +26,23 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.commands.general.XprateCommand; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.events.chat.McMMOAdminChatEvent; import com.gmail.nossr50.events.chat.McMMOPartyChatEvent; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.party.Party; import com.gmail.nossr50.runnables.BleedTimer; -import com.gmail.nossr50.skills.gathering.Fishing; -import com.gmail.nossr50.skills.gathering.Herbalism; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; +import com.gmail.nossr50.skills.fishing.Fishing; +import com.gmail.nossr50.skills.herbalism.Herbalism; import com.gmail.nossr50.skills.mining.MiningManager; import com.gmail.nossr50.skills.repair.Salvage; import com.gmail.nossr50.skills.taming.TamingManager; import com.gmail.nossr50.util.BlockChecks; import com.gmail.nossr50.util.Item; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class PlayerListener implements Listener { diff --git a/src/main/java/com/gmail/nossr50/listeners/SpoutListener.java b/src/main/java/com/gmail/nossr50/listeners/SpoutListener.java index edfedddd9..db2abc13a 100644 --- a/src/main/java/com/gmail/nossr50/listeners/SpoutListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/SpoutListener.java @@ -10,14 +10,14 @@ import org.getspout.spoutapi.gui.Button; import org.getspout.spoutapi.gui.ScreenType; import org.getspout.spoutapi.player.SpoutPlayer; -import com.gmail.nossr50.config.SpoutConfig; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SpoutHud; import com.gmail.nossr50.datatypes.buttons.McmmoButton; import com.gmail.nossr50.datatypes.popups.Menu; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.spout.SpoutConfig; import com.gmail.nossr50.spout.SpoutStuff; +import com.gmail.nossr50.spout.huds.SpoutHud; import com.gmail.nossr50.util.Users; public class SpoutListener implements Listener { diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 074ebbeb9..39550395c 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -32,26 +32,6 @@ import com.gmail.nossr50.commands.mc.McrankCommand; import com.gmail.nossr50.commands.mc.McrefreshCommand; import com.gmail.nossr50.commands.mc.McremoveCommand; import com.gmail.nossr50.commands.mc.MctopCommand; -import com.gmail.nossr50.commands.party.ACommand; -import com.gmail.nossr50.commands.party.AcceptCommand; -import com.gmail.nossr50.commands.party.InviteCommand; -import com.gmail.nossr50.commands.party.PCommand; -import com.gmail.nossr50.commands.party.PartyCommand; -import com.gmail.nossr50.commands.party.PtpCommand; -import com.gmail.nossr50.commands.skills.AcrobaticsCommand; -import com.gmail.nossr50.commands.skills.ArcheryCommand; -import com.gmail.nossr50.commands.skills.AxesCommand; -import com.gmail.nossr50.commands.skills.ExcavationCommand; -import com.gmail.nossr50.commands.skills.FishingCommand; -import com.gmail.nossr50.commands.skills.HerbalismCommand; -import com.gmail.nossr50.commands.skills.MiningCommand; -import com.gmail.nossr50.commands.skills.RepairCommand; -import com.gmail.nossr50.commands.skills.SwordsCommand; -import com.gmail.nossr50.commands.skills.TamingCommand; -import com.gmail.nossr50.commands.skills.UnarmedCommand; -import com.gmail.nossr50.commands.skills.WoodcuttingCommand; -import com.gmail.nossr50.commands.spout.MchudCommand; -import com.gmail.nossr50.commands.spout.XplockCommand; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.HiddenConfig; @@ -59,7 +39,6 @@ import com.gmail.nossr50.config.TreasuresConfig; import com.gmail.nossr50.config.mods.CustomArmorConfig; import com.gmail.nossr50.config.mods.CustomBlocksConfig; import com.gmail.nossr50.config.mods.CustomToolsConfig; -import com.gmail.nossr50.config.repair.RepairConfigManager; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.listeners.BlockListener; import com.gmail.nossr50.listeners.EntityListener; @@ -68,15 +47,36 @@ import com.gmail.nossr50.listeners.PlayerListener; import com.gmail.nossr50.listeners.WorldListener; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.party.PartyManager; +import com.gmail.nossr50.party.commands.ACommand; +import com.gmail.nossr50.party.commands.AcceptCommand; +import com.gmail.nossr50.party.commands.InviteCommand; +import com.gmail.nossr50.party.commands.PCommand; +import com.gmail.nossr50.party.commands.PartyCommand; +import com.gmail.nossr50.party.commands.PtpCommand; import com.gmail.nossr50.runnables.BleedTimer; import com.gmail.nossr50.runnables.MobStoreCleaner; import com.gmail.nossr50.runnables.SaveTimer; import com.gmail.nossr50.runnables.SkillMonitor; -import com.gmail.nossr50.runnables.SpoutStart; import com.gmail.nossr50.runnables.UserPurgeTask; +import com.gmail.nossr50.skills.acrobatics.AcrobaticsCommand; +import com.gmail.nossr50.skills.archery.ArcheryCommand; +import com.gmail.nossr50.skills.axes.AxesCommand; +import com.gmail.nossr50.skills.excavation.ExcavationCommand; +import com.gmail.nossr50.skills.fishing.FishingCommand; +import com.gmail.nossr50.skills.herbalism.HerbalismCommand; +import com.gmail.nossr50.skills.mining.MiningCommand; +import com.gmail.nossr50.skills.repair.RepairCommand; import com.gmail.nossr50.skills.repair.RepairManager; import com.gmail.nossr50.skills.repair.RepairManagerFactory; import com.gmail.nossr50.skills.repair.Repairable; +import com.gmail.nossr50.skills.repair.config.RepairConfigManager; +import com.gmail.nossr50.skills.swords.SwordsCommand; +import com.gmail.nossr50.skills.taming.TamingCommand; +import com.gmail.nossr50.skills.unarmed.UnarmedCommand; +import com.gmail.nossr50.skills.woodcutting.WoodcuttingCommand; +import com.gmail.nossr50.spout.SpoutStart; +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.Database; import com.gmail.nossr50.util.Leaderboard; diff --git a/src/main/java/com/gmail/nossr50/commands/party/ACommand.java b/src/main/java/com/gmail/nossr50/party/commands/ACommand.java similarity index 96% rename from src/main/java/com/gmail/nossr50/commands/party/ACommand.java rename to src/main/java/com/gmail/nossr50/party/commands/ACommand.java index 4a725a8c2..eea2cb566 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/ACommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/ACommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.party; +package com.gmail.nossr50.party.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; diff --git a/src/main/java/com/gmail/nossr50/commands/party/AcceptCommand.java b/src/main/java/com/gmail/nossr50/party/commands/AcceptCommand.java similarity index 95% rename from src/main/java/com/gmail/nossr50/commands/party/AcceptCommand.java rename to src/main/java/com/gmail/nossr50/party/commands/AcceptCommand.java index b05079984..b69d1e538 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/AcceptCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/AcceptCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.party; +package com.gmail.nossr50.party.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; diff --git a/src/main/java/com/gmail/nossr50/commands/party/InviteCommand.java b/src/main/java/com/gmail/nossr50/party/commands/InviteCommand.java similarity index 95% rename from src/main/java/com/gmail/nossr50/commands/party/InviteCommand.java rename to src/main/java/com/gmail/nossr50/party/commands/InviteCommand.java index 4bd1d5faf..837267726 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/InviteCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/InviteCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.party; +package com.gmail.nossr50.party.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; diff --git a/src/main/java/com/gmail/nossr50/commands/party/PCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PCommand.java similarity index 96% rename from src/main/java/com/gmail/nossr50/commands/party/PCommand.java rename to src/main/java/com/gmail/nossr50/party/commands/PCommand.java index 2e7f11189..c77ef0bc4 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.party; +package com.gmail.nossr50.party.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java similarity index 97% rename from src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java rename to src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java index 9538fbc33..966f99d8f 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.party; +package com.gmail.nossr50.party.commands; import org.bukkit.ChatColor; import org.bukkit.Server; diff --git a/src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PtpCommand.java similarity index 96% rename from src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java rename to src/main/java/com/gmail/nossr50/party/commands/PtpCommand.java index f3951e6ac..c3442daad 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PtpCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.party; +package com.gmail.nossr50.party.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; diff --git a/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java b/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java index bfa97cfd8..eba81e0e2 100644 --- a/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java +++ b/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java @@ -11,7 +11,7 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.util.Combat; +import com.gmail.nossr50.skills.Combat; public class BleedTimer implements Runnable { private final static int MAX_BLEED_TICKS = 10; diff --git a/src/main/java/com/gmail/nossr50/runnables/GainXp.java b/src/main/java/com/gmail/nossr50/runnables/GainXp.java index b0d46726d..ff736013d 100644 --- a/src/main/java/com/gmail/nossr50/runnables/GainXp.java +++ b/src/main/java/com/gmail/nossr50/runnables/GainXp.java @@ -4,8 +4,8 @@ import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.util.Skills; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; public class GainXp implements Runnable { private Player player = null; diff --git a/src/main/java/com/gmail/nossr50/runnables/GreenThumbTimer.java b/src/main/java/com/gmail/nossr50/runnables/GreenThumbTimer.java index d247df008..a138e4a04 100644 --- a/src/main/java/com/gmail/nossr50/runnables/GreenThumbTimer.java +++ b/src/main/java/com/gmail/nossr50/runnables/GreenThumbTimer.java @@ -5,9 +5,9 @@ import org.bukkit.Material; import org.bukkit.block.Block; import com.gmail.nossr50.config.AdvancedConfig; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.SkillType; public class GreenThumbTimer implements Runnable { AdvancedConfig advancedConfig = AdvancedConfig.getInstance(); diff --git a/src/main/java/com/gmail/nossr50/runnables/McRankAsync.java b/src/main/java/com/gmail/nossr50/runnables/McRankAsync.java index b8c712f58..d203880a5 100644 --- a/src/main/java/com/gmail/nossr50/runnables/McRankAsync.java +++ b/src/main/java/com/gmail/nossr50/runnables/McRankAsync.java @@ -6,10 +6,10 @@ import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Database; -import com.gmail.nossr50.util.Skills; public class McRankAsync implements Runnable { private Database database = mcMMO.getPlayerDatabase(); diff --git a/src/main/java/com/gmail/nossr50/runnables/SkillMonitor.java b/src/main/java/com/gmail/nossr50/runnables/SkillMonitor.java index a4aa3af67..eaa605347 100644 --- a/src/main/java/com/gmail/nossr50/runnables/SkillMonitor.java +++ b/src/main/java/com/gmail/nossr50/runnables/SkillMonitor.java @@ -3,10 +3,10 @@ package com.gmail.nossr50.runnables; import org.bukkit.entity.Player; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.util.Skills; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Users; public class SkillMonitor implements Runnable { diff --git a/src/main/java/com/gmail/nossr50/datatypes/AbilityType.java b/src/main/java/com/gmail/nossr50/skills/AbilityType.java similarity index 96% rename from src/main/java/com/gmail/nossr50/datatypes/AbilityType.java rename to src/main/java/com/gmail/nossr50/skills/AbilityType.java index 79209bd11..08355e6f8 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/AbilityType.java +++ b/src/main/java/com/gmail/nossr50/skills/AbilityType.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.datatypes; +package com.gmail.nossr50.skills; import org.bukkit.Material; import org.bukkit.block.Block; diff --git a/src/main/java/com/gmail/nossr50/util/Combat.java b/src/main/java/com/gmail/nossr50/skills/Combat.java similarity index 98% rename from src/main/java/com/gmail/nossr50/util/Combat.java rename to src/main/java/com/gmail/nossr50/skills/Combat.java index c80003d8e..b8e79a963 100644 --- a/src/main/java/com/gmail/nossr50/util/Combat.java +++ b/src/main/java/com/gmail/nossr50/skills/Combat.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.util; +package com.gmail.nossr50.skills; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; @@ -21,9 +21,7 @@ import org.bukkit.inventory.ItemStack; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.events.fake.FakeEntityDamageByEntityEvent; import com.gmail.nossr50.events.fake.FakeEntityDamageEvent; import com.gmail.nossr50.locale.LocaleLoader; @@ -37,6 +35,10 @@ import com.gmail.nossr50.skills.swords.Swords; import com.gmail.nossr50.skills.swords.SwordsManager; import com.gmail.nossr50.skills.taming.TamingManager; import com.gmail.nossr50.skills.unarmed.UnarmedManager; +import com.gmail.nossr50.util.ItemChecks; +import com.gmail.nossr50.util.Misc; +import com.gmail.nossr50.util.Permissions; +import com.gmail.nossr50.util.Users; public class Combat { private static Config configInstance = Config.getInstance(); diff --git a/src/main/java/com/gmail/nossr50/commands/SkillCommand.java b/src/main/java/com/gmail/nossr50/skills/SkillCommand.java similarity index 95% rename from src/main/java/com/gmail/nossr50/commands/SkillCommand.java rename to src/main/java/com/gmail/nossr50/skills/SkillCommand.java index a37efd593..db2126bf5 100644 --- a/src/main/java/com/gmail/nossr50/commands/SkillCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/SkillCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands; +package com.gmail.nossr50.skills; import java.text.DecimalFormat; @@ -7,13 +7,12 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; +import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Page; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public abstract class SkillCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/skills/SkillManager.java b/src/main/java/com/gmail/nossr50/skills/SkillManager.java index 246aba979..2e7f3853e 100644 --- a/src/main/java/com/gmail/nossr50/skills/SkillManager.java +++ b/src/main/java/com/gmail/nossr50/skills/SkillManager.java @@ -3,7 +3,6 @@ package com.gmail.nossr50.skills; import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; 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/datatypes/SkillType.java b/src/main/java/com/gmail/nossr50/skills/SkillType.java similarity index 96% rename from src/main/java/com/gmail/nossr50/datatypes/SkillType.java rename to src/main/java/com/gmail/nossr50/skills/SkillType.java index b0216160d..b3f0d7f00 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/SkillType.java +++ b/src/main/java/com/gmail/nossr50/skills/SkillType.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.datatypes; +package com.gmail.nossr50.skills; import org.bukkit.entity.Player; diff --git a/src/main/java/com/gmail/nossr50/util/Skills.java b/src/main/java/com/gmail/nossr50/skills/Skills.java similarity index 96% rename from src/main/java/com/gmail/nossr50/util/Skills.java rename to src/main/java/com/gmail/nossr50/skills/Skills.java index cafd5f2a8..ba9a1a138 100644 --- a/src/main/java/com/gmail/nossr50/util/Skills.java +++ b/src/main/java/com/gmail/nossr50/skills/Skills.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.util; +package com.gmail.nossr50.skills; import org.bukkit.block.Block; import org.bukkit.enchantments.Enchantment; @@ -10,14 +10,15 @@ import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.config.SpoutConfig; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.datatypes.ToolType; import com.gmail.nossr50.events.experience.McMMOPlayerLevelUpEvent; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.spout.SpoutConfig; import com.gmail.nossr50.spout.SpoutStuff; +import com.gmail.nossr50.util.Misc; +import com.gmail.nossr50.util.ModChecks; +import com.gmail.nossr50.util.Permissions; +import com.gmail.nossr50.util.Users; public class Skills { static AdvancedConfig advancedConfig = AdvancedConfig.getInstance(); diff --git a/src/main/java/com/gmail/nossr50/datatypes/ToolType.java b/src/main/java/com/gmail/nossr50/skills/ToolType.java similarity index 94% rename from src/main/java/com/gmail/nossr50/datatypes/ToolType.java rename to src/main/java/com/gmail/nossr50/skills/ToolType.java index e2c05b159..aba0dd224 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/ToolType.java +++ b/src/main/java/com/gmail/nossr50/skills/ToolType.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.datatypes; +package com.gmail.nossr50.skills; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; diff --git a/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java b/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsCommand.java similarity index 92% rename from src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java rename to src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsCommand.java index 63b038e84..70b6c472e 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsCommand.java @@ -1,9 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.acrobatics; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.acrobatics.Acrobatics; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class AcrobaticsCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java b/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java index 2dabf9d6d..37344494b 100644 --- a/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java +++ b/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java @@ -4,8 +4,8 @@ import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageEvent; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.skills.SkillManager; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java b/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java index 05d741e67..6a3ee80cf 100644 --- a/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java @@ -3,10 +3,10 @@ package com.gmail.nossr50.skills.acrobatics; import org.bukkit.event.entity.EntityDamageEvent; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; public class DodgeEventHandler extends AcrobaticsEventHandler { protected DodgeEventHandler(AcrobaticsManager manager, EntityDamageEvent event) { diff --git a/src/main/java/com/gmail/nossr50/skills/acrobatics/RollEventHandler.java b/src/main/java/com/gmail/nossr50/skills/acrobatics/RollEventHandler.java index 09d371737..bfd92e20e 100644 --- a/src/main/java/com/gmail/nossr50/skills/acrobatics/RollEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/acrobatics/RollEventHandler.java @@ -2,11 +2,11 @@ package com.gmail.nossr50.skills.acrobatics; import org.bukkit.event.entity.EntityDamageEvent; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; public class RollEventHandler extends AcrobaticsEventHandler { protected boolean isGraceful; diff --git a/src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryCommand.java similarity index 92% rename from src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java rename to src/main/java/com/gmail/nossr50/skills/archery/ArcheryCommand.java index 191e279cf..c390ef66f 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryCommand.java @@ -1,9 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.archery; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.archery.Archery; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class ArcheryCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java index 2ac83ecd1..43d7ff462 100644 --- a/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java +++ b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java @@ -4,8 +4,8 @@ import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageEvent; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.skills.SkillManager; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/axes/AxeManager.java b/src/main/java/com/gmail/nossr50/skills/axes/AxeManager.java index 260570b28..a041f3494 100644 --- a/src/main/java/com/gmail/nossr50/skills/axes/AxeManager.java +++ b/src/main/java/com/gmail/nossr50/skills/axes/AxeManager.java @@ -4,9 +4,9 @@ import org.bukkit.entity.Player; import org.bukkit.entity.Tameable; import org.bukkit.event.entity.EntityDamageByEntityEvent; -import com.gmail.nossr50.datatypes.AbilityType; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.AbilityType; import com.gmail.nossr50.skills.SkillManager; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/commands/skills/AxesCommand.java b/src/main/java/com/gmail/nossr50/skills/axes/AxesCommand.java similarity index 94% rename from src/main/java/com/gmail/nossr50/commands/skills/AxesCommand.java rename to src/main/java/com/gmail/nossr50/skills/axes/AxesCommand.java index ea7f058b1..8de08c103 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/AxesCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/axes/AxesCommand.java @@ -1,9 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.axes; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.axes.Axes; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class AxesCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/axes/SkullSplitterEventHandler.java b/src/main/java/com/gmail/nossr50/skills/axes/SkullSplitterEventHandler.java index 66d4c1a0a..8d70cd079 100644 --- a/src/main/java/com/gmail/nossr50/skills/axes/SkullSplitterEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/axes/SkullSplitterEventHandler.java @@ -4,8 +4,8 @@ import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageByEntityEvent; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.util.Combat; +import com.gmail.nossr50.skills.Combat; +import com.gmail.nossr50.skills.SkillType; public class SkullSplitterEventHandler { private Player player; diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java b/src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java similarity index 94% rename from src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java rename to src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java index fbe2eeca0..54576f695 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java +++ b/src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.skills.gathering; +package com.gmail.nossr50.skills.excavation; import java.util.ArrayList; import java.util.List; @@ -16,14 +16,14 @@ import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.TreasuresConfig; import com.gmail.nossr50.config.mods.CustomBlocksConfig; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.datatypes.treasure.ExcavationTreasure; import com.gmail.nossr50.events.fake.FakePlayerAnimationEvent; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.spout.SpoutSounds; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.ModChecks; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class Excavation { diff --git a/src/main/java/com/gmail/nossr50/commands/skills/ExcavationCommand.java b/src/main/java/com/gmail/nossr50/skills/excavation/ExcavationCommand.java similarity index 91% rename from src/main/java/com/gmail/nossr50/commands/skills/ExcavationCommand.java rename to src/main/java/com/gmail/nossr50/skills/excavation/ExcavationCommand.java index 77a3a97dc..0e60b35cd 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/ExcavationCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/excavation/ExcavationCommand.java @@ -1,8 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.excavation; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class ExcavationCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java b/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java old mode 100755 new mode 100644 similarity index 96% rename from src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java rename to src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java index 01979f30a..c7c310f43 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.skills.gathering; +package com.gmail.nossr50.skills.fishing; import java.util.ArrayList; import java.util.List; @@ -25,14 +25,14 @@ import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.TreasuresConfig; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.datatypes.treasure.FishingTreasure; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.util.Combat; +import com.gmail.nossr50.skills.Combat; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.ItemChecks; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class Fishing { diff --git a/src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingCommand.java similarity index 93% rename from src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java rename to src/main/java/com/gmail/nossr50/skills/fishing/FishingCommand.java index 461175c68..d23c1c319 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingCommand.java @@ -1,10 +1,9 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.fishing; -import com.gmail.nossr50.commands.SkillCommand; import com.gmail.nossr50.config.AdvancedConfig; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.gathering.Fishing; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class FishingCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java similarity index 96% rename from src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java rename to src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java index daf5a5616..0412a2be4 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.skills.gathering; +package com.gmail.nossr50.skills.herbalism; import org.bukkit.CropState; import org.bukkit.DyeColor; @@ -15,16 +15,16 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.mods.CustomBlocksConfig; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.datatypes.mods.CustomBlock; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.runnables.GreenThumbTimer; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.ModChecks; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class Herbalism { diff --git a/src/main/java/com/gmail/nossr50/commands/skills/HerbalismCommand.java b/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismCommand.java similarity index 93% rename from src/main/java/com/gmail/nossr50/commands/skills/HerbalismCommand.java rename to src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismCommand.java index c6eca253e..ba821cfdc 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/HerbalismCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismCommand.java @@ -1,16 +1,11 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.herbalism; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.config.AdvancedConfig; -import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.gathering.Herbalism; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class HerbalismCommand extends SkillCommand { - AdvancedConfig advancedConfig = AdvancedConfig.getInstance(); - private String greenTerraLength; private String greenTerraLengthEndurance; private String greenThumbChance; diff --git a/src/main/java/com/gmail/nossr50/skills/mining/Mining.java b/src/main/java/com/gmail/nossr50/skills/mining/Mining.java index 12dbe28c6..ab322956d 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/Mining.java @@ -12,11 +12,11 @@ import org.bukkit.material.MaterialData; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.datatypes.mods.CustomBlock; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.ModChecks; -import com.gmail.nossr50.util.Skills; public class Mining { private static AdvancedConfig advancedConfig = AdvancedConfig.getInstance(); diff --git a/src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java b/src/main/java/com/gmail/nossr50/skills/mining/MiningCommand.java similarity index 94% rename from src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java rename to src/main/java/com/gmail/nossr50/skills/mining/MiningCommand.java index 8c4548383..02539a039 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/MiningCommand.java @@ -1,10 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.mining; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.mining.BlastMining; -import com.gmail.nossr50.skills.mining.Mining; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java index 5a8a1382a..4579b3240 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java @@ -9,8 +9,8 @@ import org.bukkit.event.entity.ExplosionPrimeEvent; import org.bukkit.event.player.PlayerInteractEvent; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.skills.SkillManager; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/mining/RemoteDetonationEventHandler.java b/src/main/java/com/gmail/nossr50/skills/mining/RemoteDetonationEventHandler.java index 4d0e76436..67d2233dd 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/RemoteDetonationEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/RemoteDetonationEventHandler.java @@ -9,11 +9,11 @@ import org.bukkit.entity.TNTPrimed; import org.bukkit.event.player.PlayerInteractEvent; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.datatypes.AbilityType; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; public class RemoteDetonationEventHandler { private Player player; diff --git a/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java b/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java index 4e98c9d32..894fa11ff 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java @@ -8,10 +8,10 @@ import org.getspout.spoutapi.sound.SoundEffect; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.events.fake.FakePlayerAnimationEvent; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.spout.SpoutSounds; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.ModChecks; -import com.gmail.nossr50.util.Skills; public class SuperBreakerEventHandler { private MiningManager manager; diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java index 15ce49dac..753c92a6f 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java @@ -13,12 +13,12 @@ import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.spout.SpoutSounds; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class Repair { diff --git a/src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairCommand.java similarity index 94% rename from src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java rename to src/main/java/com/gmail/nossr50/skills/repair/RepairCommand.java index 3c6284302..b28ae2580 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairCommand.java @@ -1,14 +1,11 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.repair; import org.bukkit.Material; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.repair.Repair; -import com.gmail.nossr50.skills.repair.Repairable; -import com.gmail.nossr50.skills.repair.Salvage; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class RepairCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java b/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java index e97507650..74a7ab4fc 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java @@ -11,8 +11,8 @@ import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.ItemChecks; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java b/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java index 5b0e3f977..84a4d333b 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java @@ -10,9 +10,9 @@ import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.PlayerInventory; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.events.skills.McMMOPlayerRepairCheckEvent; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; 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/config/repair/RepairConfig.java b/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java similarity index 98% rename from src/main/java/com/gmail/nossr50/config/repair/RepairConfig.java rename to src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java index a991b2b47..4133da19a 100644 --- a/src/main/java/com/gmail/nossr50/config/repair/RepairConfig.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.config.repair; +package com.gmail.nossr50.skills.repair.config; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/com/gmail/nossr50/config/repair/RepairConfigManager.java b/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfigManager.java similarity index 96% rename from src/main/java/com/gmail/nossr50/config/repair/RepairConfigManager.java rename to src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfigManager.java index e4422328b..8033c071c 100644 --- a/src/main/java/com/gmail/nossr50/config/repair/RepairConfigManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfigManager.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.config.repair; +package com.gmail.nossr50.skills.repair.config; import java.io.File; import java.util.ArrayList; diff --git a/src/main/java/com/gmail/nossr50/skills/swords/CounterAttackEventHandler.java b/src/main/java/com/gmail/nossr50/skills/swords/CounterAttackEventHandler.java index c035acde3..cd3d42633 100644 --- a/src/main/java/com/gmail/nossr50/skills/swords/CounterAttackEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/swords/CounterAttackEventHandler.java @@ -4,7 +4,7 @@ import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.util.Combat; +import com.gmail.nossr50.skills.Combat; import com.gmail.nossr50.util.ItemChecks; import com.gmail.nossr50.util.Misc; diff --git a/src/main/java/com/gmail/nossr50/skills/swords/SerratedStrikesEventHandler.java b/src/main/java/com/gmail/nossr50/skills/swords/SerratedStrikesEventHandler.java index 36d7c2187..a7982310e 100644 --- a/src/main/java/com/gmail/nossr50/skills/swords/SerratedStrikesEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/swords/SerratedStrikesEventHandler.java @@ -3,9 +3,9 @@ package com.gmail.nossr50.skills.swords; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.runnables.BleedTimer; -import com.gmail.nossr50.util.Combat; +import com.gmail.nossr50.skills.Combat; +import com.gmail.nossr50.skills.SkillType; public class SerratedStrikesEventHandler { private Player player; diff --git a/src/main/java/com/gmail/nossr50/commands/skills/SwordsCommand.java b/src/main/java/com/gmail/nossr50/skills/swords/SwordsCommand.java similarity index 94% rename from src/main/java/com/gmail/nossr50/commands/skills/SwordsCommand.java rename to src/main/java/com/gmail/nossr50/skills/swords/SwordsCommand.java index afe6a5816..91a0dec96 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/SwordsCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/swords/SwordsCommand.java @@ -1,9 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.swords; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.swords.Swords; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class SwordsCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/swords/SwordsManager.java b/src/main/java/com/gmail/nossr50/skills/swords/SwordsManager.java index f52052e3c..a24124468 100644 --- a/src/main/java/com/gmail/nossr50/skills/swords/SwordsManager.java +++ b/src/main/java/com/gmail/nossr50/skills/swords/SwordsManager.java @@ -3,10 +3,10 @@ package com.gmail.nossr50.skills.swords; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.AbilityType; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.AbilityType; +import com.gmail.nossr50.skills.Combat; import com.gmail.nossr50.skills.SkillManager; -import com.gmail.nossr50.util.Combat; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/commands/skills/TamingCommand.java b/src/main/java/com/gmail/nossr50/skills/taming/TamingCommand.java similarity index 95% rename from src/main/java/com/gmail/nossr50/commands/skills/TamingCommand.java rename to src/main/java/com/gmail/nossr50/skills/taming/TamingCommand.java index 198c9886d..c4fcd2b9a 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/TamingCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/TamingCommand.java @@ -1,10 +1,9 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.taming; -import com.gmail.nossr50.commands.SkillCommand; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.taming.Taming; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class TamingCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java index 71a4daa73..08c47fac3 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java @@ -9,8 +9,8 @@ import org.bukkit.event.entity.EntityDamageEvent.DamageCause; import org.bukkit.inventory.ItemStack; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.skills.SkillManager; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/unarmed/IronGripEventHandler.java b/src/main/java/com/gmail/nossr50/skills/unarmed/IronGripEventHandler.java index 398fa3179..74c8dea41 100644 --- a/src/main/java/com/gmail/nossr50/skills/unarmed/IronGripEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/unarmed/IronGripEventHandler.java @@ -2,8 +2,8 @@ package com.gmail.nossr50.skills.unarmed; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Users; diff --git a/src/main/java/com/gmail/nossr50/commands/skills/UnarmedCommand.java b/src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedCommand.java similarity index 94% rename from src/main/java/com/gmail/nossr50/commands/skills/UnarmedCommand.java rename to src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedCommand.java index 34ff16e03..12bc6f310 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/UnarmedCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedCommand.java @@ -1,9 +1,8 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.unarmed; -import com.gmail.nossr50.commands.SkillCommand; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.unarmed.Unarmed; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class UnarmedCommand extends SkillCommand { diff --git a/src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedManager.java b/src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedManager.java index 8662c5f78..dfed24889 100644 --- a/src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedManager.java +++ b/src/main/java/com/gmail/nossr50/skills/unarmed/UnarmedManager.java @@ -3,8 +3,8 @@ package com.gmail.nossr50.skills.unarmed; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageEvent; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.skills.SkillManager; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java similarity index 94% rename from src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java rename to src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java index 2b7f67a81..43ddf70c3 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.skills.gathering; +package com.gmail.nossr50.skills.woodcutting; import java.util.ArrayList; import java.util.List; @@ -19,20 +19,20 @@ import org.getspout.spoutapi.sound.SoundEffect; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.datatypes.mods.CustomBlock; import com.gmail.nossr50.events.fake.FakePlayerAnimationEvent; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.Combat; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.spout.SpoutSounds; import com.gmail.nossr50.util.BlockChecks; -import com.gmail.nossr50.util.Combat; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.ModChecks; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; -public class WoodCutting { +public class Woodcutting { private static final AdvancedConfig ADVANCED_CONFIG = AdvancedConfig.getInstance(); private static boolean treeFellerReachedThreshold = false; @@ -95,7 +95,7 @@ public class WoodCutting { } if (block.getType() == Material.LOG) { - WoodCutting.woodCuttingProcCheck(player, block); + Woodcutting.woodCuttingProcCheck(player, block); TreeSpecies species = ((Tree) block.getState().getData()).getSpecies(); @@ -131,7 +131,7 @@ public class WoodCutting { if (ModChecks.isCustomLogBlock(block)) { CustomBlock customBlock = ModChecks.getCustomBlock(block); - WoodCutting.woodCuttingProcCheck(player, block); + Woodcutting.woodCuttingProcCheck(player, block); xp = customBlock.getXpGain(); int minimumDropAmount = customBlock.getMinimumDropAmount(); @@ -378,7 +378,7 @@ public class WoodCutting { } } - WoodCutting.woodCuttingProcCheck(player, block); + Woodcutting.woodCuttingProcCheck(player, block); Skills.xpProcessing(player, Users.getProfile(player), SkillType.WOODCUTTING, xp); } diff --git a/src/main/java/com/gmail/nossr50/commands/skills/WoodcuttingCommand.java b/src/main/java/com/gmail/nossr50/skills/woodcutting/WoodcuttingCommand.java similarity index 87% rename from src/main/java/com/gmail/nossr50/commands/skills/WoodcuttingCommand.java rename to src/main/java/com/gmail/nossr50/skills/woodcutting/WoodcuttingCommand.java index c3d90bfaf..16475c86f 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/WoodcuttingCommand.java +++ b/src/main/java/com/gmail/nossr50/skills/woodcutting/WoodcuttingCommand.java @@ -1,10 +1,9 @@ -package com.gmail.nossr50.commands.skills; +package com.gmail.nossr50.skills.woodcutting; -import com.gmail.nossr50.commands.SkillCommand; import com.gmail.nossr50.config.AdvancedConfig; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.skills.gathering.WoodCutting; +import com.gmail.nossr50.skills.SkillCommand; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.util.Permissions; public class WoodcuttingCommand extends SkillCommand { @@ -31,7 +30,7 @@ public class WoodcuttingCommand extends SkillCommand { treeFellerLengthEndurance = treeFellerStrings[1]; //DOUBLE DROPS - String[] doubleDropStrings = calculateAbilityDisplayValues(WoodCutting.doubleDropsMaxLevel, WoodCutting.doubleDropsMaxChance); + String[] doubleDropStrings = calculateAbilityDisplayValues(Woodcutting.doubleDropsMaxLevel, Woodcutting.doubleDropsMaxChance); doubleDropChance = doubleDropStrings[0]; doubleDropChanceLucky = doubleDropStrings[1]; } @@ -41,7 +40,7 @@ public class WoodcuttingCommand extends SkillCommand { canTreeFell = Permissions.treeFeller(player); canDoubleDrop = Permissions.woodcuttingDoubleDrops(player); canLeafBlow = Permissions.leafBlower(player); - doubleDropsDisabled = WoodCutting.doubleDropsDisabled; + doubleDropsDisabled = Woodcutting.doubleDropsDisabled; } @Override @@ -74,8 +73,8 @@ public class WoodcuttingCommand extends SkillCommand { @Override protected void statsDisplay() { if (canLeafBlow) { - if (skillValue < WoodCutting.leafBlowerUnlockLevel) { - player.sendMessage(LocaleLoader.getString("Ability.Generic.Template.Lock", new Object[] { LocaleLoader.getString("Woodcutting.Ability.Locked.0", new Object[] { WoodCutting.leafBlowerUnlockLevel }) })); + if (skillValue < Woodcutting.leafBlowerUnlockLevel) { + player.sendMessage(LocaleLoader.getString("Ability.Generic.Template.Lock", new Object[] { LocaleLoader.getString("Woodcutting.Ability.Locked.0", new Object[] { Woodcutting.leafBlowerUnlockLevel }) })); } else { player.sendMessage(LocaleLoader.getString("Ability.Generic.Template", new Object[] { LocaleLoader.getString("Woodcutting.Ability.0"), LocaleLoader.getString("Woodcutting.Ability.1") })); diff --git a/src/main/java/com/gmail/nossr50/config/SpoutConfig.java b/src/main/java/com/gmail/nossr50/spout/SpoutConfig.java similarity index 96% rename from src/main/java/com/gmail/nossr50/config/SpoutConfig.java rename to src/main/java/com/gmail/nossr50/spout/SpoutConfig.java index 30ad99d2f..9d0037def 100644 --- a/src/main/java/com/gmail/nossr50/config/SpoutConfig.java +++ b/src/main/java/com/gmail/nossr50/spout/SpoutConfig.java @@ -1,6 +1,7 @@ -package com.gmail.nossr50.config; +package com.gmail.nossr50.spout; -import com.gmail.nossr50.datatypes.HudType; +import com.gmail.nossr50.config.ConfigLoader; +import com.gmail.nossr50.spout.huds.HudType; public class SpoutConfig extends ConfigLoader { private static SpoutConfig instance; diff --git a/src/main/java/com/gmail/nossr50/runnables/SpoutStart.java b/src/main/java/com/gmail/nossr50/spout/SpoutStart.java similarity index 89% rename from src/main/java/com/gmail/nossr50/runnables/SpoutStart.java rename to src/main/java/com/gmail/nossr50/spout/SpoutStart.java index 5702c8977..6f3b56a8f 100644 --- a/src/main/java/com/gmail/nossr50/runnables/SpoutStart.java +++ b/src/main/java/com/gmail/nossr50/spout/SpoutStart.java @@ -1,11 +1,9 @@ -package com.gmail.nossr50.runnables; +package com.gmail.nossr50.spout; import org.getspout.spoutapi.SpoutManager; import org.getspout.spoutapi.player.FileManager; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.config.SpoutConfig; -import com.gmail.nossr50.spout.SpoutStuff; public class SpoutStart implements Runnable{ private final mcMMO plugin; diff --git a/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java b/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java index 79d5a1154..14ef9c892 100644 --- a/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java +++ b/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java @@ -20,13 +20,12 @@ import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.AdvancedConfig; -import com.gmail.nossr50.config.SpoutConfig; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.listeners.SpoutListener; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class SpoutStuff { diff --git a/src/main/java/com/gmail/nossr50/commands/spout/MchudCommand.java b/src/main/java/com/gmail/nossr50/spout/commands/MchudCommand.java similarity index 88% rename from src/main/java/com/gmail/nossr50/commands/spout/MchudCommand.java rename to src/main/java/com/gmail/nossr50/spout/commands/MchudCommand.java index 29bb9afd8..d4f370bdc 100644 --- a/src/main/java/com/gmail/nossr50/commands/spout/MchudCommand.java +++ b/src/main/java/com/gmail/nossr50/spout/commands/MchudCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.spout; +package com.gmail.nossr50.spout.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; @@ -7,11 +7,11 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.commands.CommandHelper; -import com.gmail.nossr50.config.SpoutConfig; -import com.gmail.nossr50.datatypes.HudType; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SpoutHud; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.spout.SpoutConfig; +import com.gmail.nossr50.spout.huds.HudType; +import com.gmail.nossr50.spout.huds.SpoutHud; import com.gmail.nossr50.util.Users; public class MchudCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/commands/spout/XplockCommand.java b/src/main/java/com/gmail/nossr50/spout/commands/XplockCommand.java similarity index 90% rename from src/main/java/com/gmail/nossr50/commands/spout/XplockCommand.java rename to src/main/java/com/gmail/nossr50/spout/commands/XplockCommand.java index d3a2b3c28..421500ecb 100644 --- a/src/main/java/com/gmail/nossr50/commands/spout/XplockCommand.java +++ b/src/main/java/com/gmail/nossr50/spout/commands/XplockCommand.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.commands.spout; +package com.gmail.nossr50.spout.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; @@ -8,14 +8,14 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.config.SpoutConfig; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.datatypes.SpoutHud; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; +import com.gmail.nossr50.spout.SpoutConfig; +import com.gmail.nossr50.spout.huds.SpoutHud; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; -import com.gmail.nossr50.util.Skills; import com.gmail.nossr50.util.Users; public class XplockCommand implements CommandExecutor { diff --git a/src/main/java/com/gmail/nossr50/datatypes/HudType.java b/src/main/java/com/gmail/nossr50/spout/huds/HudType.java similarity index 81% rename from src/main/java/com/gmail/nossr50/datatypes/HudType.java rename to src/main/java/com/gmail/nossr50/spout/huds/HudType.java index 96708c804..d70f24f05 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/HudType.java +++ b/src/main/java/com/gmail/nossr50/spout/huds/HudType.java @@ -1,4 +1,4 @@ -package com.gmail.nossr50.datatypes; +package com.gmail.nossr50.spout.huds; public enum HudType { DISABLED, diff --git a/src/main/java/com/gmail/nossr50/datatypes/SpoutHud.java b/src/main/java/com/gmail/nossr50/spout/huds/SpoutHud.java similarity index 87% rename from src/main/java/com/gmail/nossr50/datatypes/SpoutHud.java rename to src/main/java/com/gmail/nossr50/spout/huds/SpoutHud.java index 3c3e6a45d..006bcc122 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/SpoutHud.java +++ b/src/main/java/com/gmail/nossr50/spout/huds/SpoutHud.java @@ -1,12 +1,15 @@ -package com.gmail.nossr50.datatypes; +package com.gmail.nossr50.spout.huds; import org.bukkit.entity.Player; import org.getspout.spoutapi.SpoutManager; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.config.SpoutConfig; +import com.gmail.nossr50.datatypes.McMMOPlayer; +import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.datatypes.popups.Menu; import com.gmail.nossr50.datatypes.popups.XpBar; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.spout.SpoutConfig; public class SpoutHud { private Player player; diff --git a/src/main/java/com/gmail/nossr50/util/Database.java b/src/main/java/com/gmail/nossr50/util/Database.java index 717c72873..9200b3e18 100644 --- a/src/main/java/com/gmail/nossr50/util/Database.java +++ b/src/main/java/com/gmail/nossr50/util/Database.java @@ -17,10 +17,10 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.DatabaseUpdate; import com.gmail.nossr50.datatypes.McMMOPlayer; -import com.gmail.nossr50.datatypes.SkillType; -import com.gmail.nossr50.datatypes.SpoutHud; import com.gmail.nossr50.runnables.SQLReconnect; +import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.spout.SpoutStuff; +import com.gmail.nossr50.spout.huds.SpoutHud; public class Database { diff --git a/src/main/java/com/gmail/nossr50/util/Hardcore.java b/src/main/java/com/gmail/nossr50/util/Hardcore.java index 7b30ecc47..d239175fc 100644 --- a/src/main/java/com/gmail/nossr50/util/Hardcore.java +++ b/src/main/java/com/gmail/nossr50/util/Hardcore.java @@ -4,8 +4,8 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; public abstract class Hardcore { diff --git a/src/main/java/com/gmail/nossr50/util/Item.java b/src/main/java/com/gmail/nossr50/util/Item.java index b7aee76ec..43c430fdc 100644 --- a/src/main/java/com/gmail/nossr50/util/Item.java +++ b/src/main/java/com/gmail/nossr50/util/Item.java @@ -8,6 +8,7 @@ import org.bukkit.inventory.ItemStack; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.Skills; public class Item { diff --git a/src/main/java/com/gmail/nossr50/util/Leaderboard.java b/src/main/java/com/gmail/nossr50/util/Leaderboard.java index d8cec9a22..dfffb1268 100644 --- a/src/main/java/com/gmail/nossr50/util/Leaderboard.java +++ b/src/main/java/com/gmail/nossr50/util/Leaderboard.java @@ -10,7 +10,7 @@ import java.util.List; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.datatypes.PlayerStat; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; public class Leaderboard { private static mcMMO plugin = mcMMO.p; diff --git a/src/main/java/com/gmail/nossr50/util/Page.java b/src/main/java/com/gmail/nossr50/util/Page.java index 1d427dbf4..612c6b4cc 100644 --- a/src/main/java/com/gmail/nossr50/util/Page.java +++ b/src/main/java/com/gmail/nossr50/util/Page.java @@ -4,8 +4,9 @@ import java.util.ArrayList; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.SkillType; +import com.gmail.nossr50.skills.Skills; public class Page { diff --git a/src/main/java/com/gmail/nossr50/util/Permissions.java b/src/main/java/com/gmail/nossr50/util/Permissions.java index 0c1dfdfdc..08d695ea2 100644 --- a/src/main/java/com/gmail/nossr50/util/Permissions.java +++ b/src/main/java/com/gmail/nossr50/util/Permissions.java @@ -3,7 +3,7 @@ package com.gmail.nossr50.util; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import com.gmail.nossr50.datatypes.SkillType; +import com.gmail.nossr50.skills.SkillType; public class Permissions { public static boolean hasPermission(CommandSender sender, String perm)