diff --git a/src/main/java/com/github/xcykrix/dynamiclights/DynamicLights.java b/src/main/java/com/github/xcykrix/dynamiclights/DynamicLights.java index ceb40ff..8de7d0c 100644 --- a/src/main/java/com/github/xcykrix/dynamiclights/DynamicLights.java +++ b/src/main/java/com/github/xcykrix/dynamiclights/DynamicLights.java @@ -1,12 +1,13 @@ package com.github.xcykrix.dynamiclights; +import org.bukkit.entity.Player; + import com.comphenix.protocol.utility.MinecraftVersion; import com.github.xcykrix.dynamiclights.module.DynamicLightCommand; import com.github.xcykrix.dynamiclights.util.LightManager; import com.github.xcykrix.dynamiclights.util.LightSources; import com.github.xcykrix.plugincommon.PluginCommon; import com.github.xcykrix.plugincommon.api.records.Resource; -import org.bukkit.entity.Player; public final class DynamicLights extends PluginCommon { private LightManager lightManager; diff --git a/src/main/java/com/github/xcykrix/dynamiclights/module/DynamicLightCommand.java b/src/main/java/com/github/xcykrix/dynamiclights/module/DynamicLightCommand.java index 1ac71ce..14f2688 100644 --- a/src/main/java/com/github/xcykrix/dynamiclights/module/DynamicLightCommand.java +++ b/src/main/java/com/github/xcykrix/dynamiclights/module/DynamicLightCommand.java @@ -1,5 +1,11 @@ package com.github.xcykrix.dynamiclights.module; +import java.io.IOException; + +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + import com.github.xcykrix.dynamiclights.module.events.PlayerHandlerEvent; import com.github.xcykrix.dynamiclights.util.LightManager; import com.github.xcykrix.dynamiclights.util.LightSources; @@ -8,13 +14,11 @@ import com.github.xcykrix.plugincommon.extendables.implement.Initialize; import com.shaded._100.aikar.commands.BaseCommand; import com.shaded._100.aikar.commands.CommandHelp; -import com.shaded._100.aikar.commands.annotation.*; - -import java.io.IOException; - -import org.apache.commons.lang3.exception.ExceptionUtils; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; +import com.shaded._100.aikar.commands.annotation.CommandAlias; +import com.shaded._100.aikar.commands.annotation.CommandPermission; +import com.shaded._100.aikar.commands.annotation.Description; +import com.shaded._100.aikar.commands.annotation.HelpCommand; +import com.shaded._100.aikar.commands.annotation.Subcommand; @CommandAlias("dynamiclights|dynamiclight|dl") public class DynamicLightCommand extends BaseCommand implements Initialize { diff --git a/src/main/java/com/github/xcykrix/dynamiclights/module/events/PlayerHandlerEvent.java b/src/main/java/com/github/xcykrix/dynamiclights/module/events/PlayerHandlerEvent.java index 2c7c50f..929ff7b 100644 --- a/src/main/java/com/github/xcykrix/dynamiclights/module/events/PlayerHandlerEvent.java +++ b/src/main/java/com/github/xcykrix/dynamiclights/module/events/PlayerHandlerEvent.java @@ -1,9 +1,5 @@ package com.github.xcykrix.dynamiclights.module.events; -import com.github.xcykrix.dynamiclights.util.LightManager; -import com.github.xcykrix.plugincommon.PluginCommon; -import com.github.xcykrix.plugincommon.api.helper.configuration.LanguageFile; -import com.github.xcykrix.plugincommon.extendables.Stateful; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; @@ -12,6 +8,11 @@ import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.inventory.EquipmentSlot; +import com.github.xcykrix.dynamiclights.util.LightManager; +import com.github.xcykrix.plugincommon.PluginCommon; +import com.github.xcykrix.plugincommon.api.helper.configuration.LanguageFile; +import com.github.xcykrix.plugincommon.extendables.Stateful; + public class PlayerHandlerEvent extends Stateful implements Listener { private final LightManager lightManager; private final LanguageFile languageFile; diff --git a/src/main/java/com/github/xcykrix/dynamiclights/util/LightManager.java b/src/main/java/com/github/xcykrix/dynamiclights/util/LightManager.java index 29ae4d9..50a8746 100644 --- a/src/main/java/com/github/xcykrix/dynamiclights/util/LightManager.java +++ b/src/main/java/com/github/xcykrix/dynamiclights/util/LightManager.java @@ -1,9 +1,8 @@ package com.github.xcykrix.dynamiclights.util; -import com.github.xcykrix.plugincommon.PluginCommon; -import com.github.xcykrix.plugincommon.extendables.Stateful; -import com.github.xcykrix.plugincommon.extendables.implement.Shutdown; -import com.shaded._100.org.h2.mvstore.MVMap; +import java.util.HashMap; +import java.util.UUID; + import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; @@ -15,8 +14,10 @@ import org.bukkit.inventory.ItemStack; import org.bukkit.scheduler.BukkitTask; -import java.util.HashMap; -import java.util.UUID; +import com.github.xcykrix.plugincommon.PluginCommon; +import com.github.xcykrix.plugincommon.extendables.Stateful; +import com.github.xcykrix.plugincommon.extendables.implement.Shutdown; +import com.shaded._100.org.h2.mvstore.MVMap; public class LightManager extends Stateful implements Shutdown { public LightSources lightSources; diff --git a/src/main/java/com/github/xcykrix/dynamiclights/util/LightSources.java b/src/main/java/com/github/xcykrix/dynamiclights/util/LightSources.java index db4a295..016854f 100644 --- a/src/main/java/com/github/xcykrix/dynamiclights/util/LightSources.java +++ b/src/main/java/com/github/xcykrix/dynamiclights/util/LightSources.java @@ -1,17 +1,17 @@ package com.github.xcykrix.dynamiclights.util; -import com.github.xcykrix.plugincommon.PluginCommon; -import com.github.xcykrix.plugincommon.extendables.Stateful; -import com.shaded._100.dev.dejvokep.boostedyaml.YamlDocument; -import com.shaded._100.dev.dejvokep.boostedyaml.block.Block; - -import org.bukkit.Material; - import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; +import org.bukkit.Material; + +import com.github.xcykrix.plugincommon.PluginCommon; +import com.github.xcykrix.plugincommon.extendables.Stateful; +import com.shaded._100.dev.dejvokep.boostedyaml.YamlDocument; +import com.shaded._100.dev.dejvokep.boostedyaml.block.Block; + public class LightSources extends Stateful { private final HashMap levelOfLights = new HashMap<>(); private final HashSet submersibleLights = new HashSet<>();