From bded936af5c421ea2f0d29cfd9d33c4ef283eec7 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Thu, 31 Oct 2013 22:30:05 +0100 Subject: [PATCH] Cleanup our imports --- .../java/com/gmail/nossr50/commands/McscoreboardCommand.java | 2 ++ .../java/com/gmail/nossr50/commands/MobhealthCommand.java | 1 + .../com/gmail/nossr50/commands/player/MccooldownCommand.java | 1 + .../com/gmail/nossr50/commands/player/McrankCommand.java | 1 + .../java/com/gmail/nossr50/commands/player/MctopCommand.java | 1 + .../java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java | 5 +++-- .../java/com/gmail/nossr50/datatypes/skills/AbilityType.java | 1 + .../nossr50/runnables/commands/McrankCommandAsyncTask.java | 3 ++- .../nossr50/runnables/commands/MctopCommandAsyncTask.java | 3 ++- .../java/com/gmail/nossr50/skills/taming/TamingManager.java | 2 +- src/main/java/com/gmail/nossr50/util/HolidayManager.java | 1 + .../gmail/nossr50/util/scoreboards/ScoreboardManager.java | 1 + .../gmail/nossr50/util/scoreboards/ScoreboardWrapper.java | 3 ++- 13 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/McscoreboardCommand.java b/src/main/java/com/gmail/nossr50/commands/McscoreboardCommand.java index 7b9d87083..0ad35a378 100644 --- a/src/main/java/com/gmail/nossr50/commands/McscoreboardCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/McscoreboardCommand.java @@ -2,6 +2,7 @@ package com.gmail.nossr50.commands; import java.util.ArrayList; import java.util.List; + import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabExecutor; @@ -11,6 +12,7 @@ import com.gmail.nossr50.config.Config; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.commands.CommandUtils; import com.gmail.nossr50.util.scoreboards.ScoreboardManager; + import com.google.common.collect.ImmutableList; public class McscoreboardCommand implements TabExecutor { diff --git a/src/main/java/com/gmail/nossr50/commands/MobhealthCommand.java b/src/main/java/com/gmail/nossr50/commands/MobhealthCommand.java index 59afd8a21..a1aa8ebed 100644 --- a/src/main/java/com/gmail/nossr50/commands/MobhealthCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/MobhealthCommand.java @@ -14,6 +14,7 @@ import com.gmail.nossr50.datatypes.MobHealthbarType; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.commands.CommandUtils; import com.gmail.nossr50.util.player.UserManager; + import com.google.common.collect.ImmutableList; public class MobhealthCommand implements TabExecutor { diff --git a/src/main/java/com/gmail/nossr50/commands/player/MccooldownCommand.java b/src/main/java/com/gmail/nossr50/commands/player/MccooldownCommand.java index 20f404022..a261b512b 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/MccooldownCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/MccooldownCommand.java @@ -14,6 +14,7 @@ import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.commands.CommandUtils; import com.gmail.nossr50.util.player.UserManager; import com.gmail.nossr50.util.scoreboards.ScoreboardManager; + import com.google.common.collect.ImmutableList; public class MccooldownCommand implements TabExecutor { 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 6bb5475f9..eb4923814 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java @@ -19,6 +19,7 @@ import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.commands.CommandUtils; import com.gmail.nossr50.util.player.UserManager; + import com.google.common.collect.ImmutableList; public class McrankCommand implements TabExecutor { 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 e73fcaac9..af4f343d0 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java @@ -20,6 +20,7 @@ import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.StringUtils; import com.gmail.nossr50.util.commands.CommandUtils; import com.gmail.nossr50.util.player.UserManager; + import com.google.common.collect.ImmutableList; public class MctopCommand implements TabExecutor { diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java index 607f6bd49..b1c3b5d81 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java @@ -4,7 +4,6 @@ import java.util.HashMap; import java.util.Map; import java.util.Set; -import org.apache.commons.lang.Validate; import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.Server; @@ -52,6 +51,8 @@ import com.gmail.nossr50.util.skills.ParticleEffectUtils; import com.gmail.nossr50.util.skills.PerksUtils; import com.gmail.nossr50.util.skills.SkillUtils; +import org.apache.commons.lang.Validate; + public class McMMOPlayer { private Player player; private PlayerProfile profile; @@ -472,7 +473,7 @@ public class McMMOPlayer { if (xp <= 0.0) { return; - } + } if (skill.isChildSkill()) { Set parentSkills = FamilyTree.getParents(skill); diff --git a/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java b/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java index e4ef470ed..8d4731239 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java +++ b/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java @@ -13,6 +13,7 @@ import com.gmail.nossr50.util.BlockUtils; import com.gmail.nossr50.util.EventUtils; import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.StringUtils; + import com.google.common.collect.ImmutableList; public enum AbilityType { diff --git a/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandAsyncTask.java b/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandAsyncTask.java index dafbc2c22..266311e38 100644 --- a/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandAsyncTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandAsyncTask.java @@ -2,7 +2,6 @@ package com.gmail.nossr50.runnables.commands; import java.util.Map; -import org.apache.commons.lang.Validate; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.scheduler.BukkitRunnable; @@ -10,6 +9,8 @@ import org.bukkit.scheduler.BukkitRunnable; import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.datatypes.skills.SkillType; +import org.apache.commons.lang.Validate; + public class McrankCommandAsyncTask extends BukkitRunnable { private final String playerName; private final CommandSender sender; diff --git a/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandAsyncTask.java b/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandAsyncTask.java index 2036a6d05..245a60a64 100644 --- a/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandAsyncTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandAsyncTask.java @@ -2,7 +2,6 @@ package com.gmail.nossr50.runnables.commands; import java.util.List; -import org.apache.commons.lang.Validate; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.scheduler.BukkitRunnable; @@ -11,6 +10,8 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.datatypes.database.PlayerStat; import com.gmail.nossr50.datatypes.skills.SkillType; +import org.apache.commons.lang.Validate; + public class MctopCommandAsyncTask extends BukkitRunnable { private final CommandSender sender; private final SkillType skill; 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 7d819eb6d..2710328d2 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java @@ -2,10 +2,10 @@ package com.gmail.nossr50.skills.taming; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; +import org.bukkit.entity.Horse; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Ocelot; import org.bukkit.entity.Player; -import org.bukkit.entity.Horse; import org.bukkit.entity.Tameable; import org.bukkit.entity.Wolf; import org.bukkit.inventory.ItemStack; diff --git a/src/main/java/com/gmail/nossr50/util/HolidayManager.java b/src/main/java/com/gmail/nossr50/util/HolidayManager.java index c94913dc4..e8ddad18b 100644 --- a/src/main/java/com/gmail/nossr50/util/HolidayManager.java +++ b/src/main/java/com/gmail/nossr50/util/HolidayManager.java @@ -25,6 +25,7 @@ import org.bukkit.entity.Player; import org.bukkit.inventory.meta.FireworkMeta; import com.gmail.nossr50.mcMMO; + import com.google.common.collect.ImmutableList; public final class HolidayManager { diff --git a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java index 69a0a1702..0bc43ba9e 100644 --- a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java +++ b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java @@ -22,6 +22,7 @@ import com.gmail.nossr50.datatypes.skills.SkillType; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.player.UserManager; + import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; diff --git a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java index 707403f22..4bbc36c7d 100644 --- a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java +++ b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java @@ -3,7 +3,6 @@ package com.gmail.nossr50.util.scoreboards; import java.util.List; import java.util.Map; -import org.apache.commons.lang.Validate; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.scheduler.BukkitRunnable; @@ -26,6 +25,8 @@ import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.player.UserManager; import com.gmail.nossr50.util.scoreboards.ScoreboardManager.SidebarType; +import org.apache.commons.lang.Validate; + public class ScoreboardWrapper { // Initialization variables