Skip to content

Commit

Permalink
Refactor project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriianh committed Dec 12, 2023
1 parent 9fb2158 commit 29d25b6
Show file tree
Hide file tree
Showing 55 changed files with 168 additions and 168 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/adriianhdev/plutotems/PluTotems.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems

import me.adriianhdev.plutotems.common.plugin.PluTotemsLoader
import me.adriianhdev.plutotems.plugin.PluTotemsLoader
import taboolib.common.platform.Plugin
import taboolib.platform.BukkitPlugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package me.adriianhdev.plutotems.module.conf
package me.adriianhdev.plutotems.configuration

import me.adriianhdev.plutotems.common.util.getConditions
import me.adriianhdev.plutotems.common.util.getOptions
import me.adriianhdev.plutotems.common.util.getTotemItem
import me.adriianhdev.plutotems.common.util.getTypes
import me.adriianhdev.plutotems.module.conf.totem.Totem
import me.adriianhdev.plutotems.module.conf.totem.TotemManager
import me.adriianhdev.plutotems.module.conf.totem.TotemScript
import me.adriianhdev.plutotems.core.totem.Totem
import me.adriianhdev.plutotems.core.totem.TotemManager
import me.adriianhdev.plutotems.core.totem.TotemScript
import me.adriianhdev.plutotems.util.getConditions
import me.adriianhdev.plutotems.util.getOptions
import me.adriianhdev.plutotems.util.getTotemItem
import me.adriianhdev.plutotems.util.getTypes
import taboolib.common.LifeCycle
import taboolib.common.platform.Awake
import taboolib.common.platform.function.getDataFolder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.adriianhdev.plutotems.module.conf
package me.adriianhdev.plutotems.configuration

import taboolib.module.configuration.Config
import taboolib.module.configuration.Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.internal.command
package me.adriianhdev.plutotems.core.command

import me.adriianhdev.plutotems.PluTotems
import me.adriianhdev.plutotems.module.internal.command.impl.*
import me.adriianhdev.plutotems.core.command.impl.*
import org.bukkit.command.CommandSender
import taboolib.common.platform.command.CommandBody
import taboolib.common.platform.command.CommandHeader
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.adriianhdev.plutotems.module.internal.command
package me.adriianhdev.plutotems.core.command

@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.internal.command.impl
package me.adriianhdev.plutotems.core.command.impl

import me.adriianhdev.plutotems.common.util.PlayerUtil
import me.adriianhdev.plutotems.module.conf.totem.TotemManager
import me.adriianhdev.plutotems.core.totem.TotemManager
import me.adriianhdev.plutotems.util.PlayerUtil
import org.bukkit.entity.Player
import taboolib.common.platform.command.subCommand
import taboolib.platform.util.sendLang
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.adriianhdev.plutotems.module.internal.command.impl
package me.adriianhdev.plutotems.core.command.impl

import me.adriianhdev.plutotems.common.util.PlayerUtil
import me.adriianhdev.plutotems.module.conf.totem.Totem
import me.adriianhdev.plutotems.module.conf.totem.TotemManager
import me.adriianhdev.plutotems.core.totem.Totem
import me.adriianhdev.plutotems.core.totem.TotemManager
import me.adriianhdev.plutotems.util.PlayerUtil
import org.bukkit.Bukkit
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.internal.command.impl
package me.adriianhdev.plutotems.core.command.impl

import me.adriianhdev.plutotems.common.plugin.PluTotemsLoader
import me.adriianhdev.plutotems.plugin.PluTotemsLoader
import org.bukkit.command.CommandSender
import taboolib.common.platform.command.subCommand
import taboolib.platform.util.sendLang
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.internal.command.impl
package me.adriianhdev.plutotems.core.command.impl

import me.adriianhdev.plutotems.common.util.PlayerUtil
import me.adriianhdev.plutotems.module.conf.totem.TotemManager
import me.adriianhdev.plutotems.core.totem.TotemManager
import me.adriianhdev.plutotems.util.PlayerUtil
import org.bukkit.Bukkit
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.internal.command.impl
package me.adriianhdev.plutotems.core.command.impl

import me.adriianhdev.plutotems.common.util.SchematicUtil
import me.adriianhdev.plutotems.util.SchematicUtil
import org.bukkit.entity.Player
import taboolib.common.platform.command.CommandBody
import taboolib.common.platform.command.CommandHeader
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.common.util.ExecutorUtils.run
import me.adriianhdev.plutotems.common.util.PlayerUtil
import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.common.util.TotemUtil.checkType
import me.adriianhdev.plutotems.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.util.ExecutorUtils.run
import me.adriianhdev.plutotems.util.PlayerUtil
import me.adriianhdev.plutotems.util.TotemUtil
import me.adriianhdev.plutotems.util.TotemUtil.checkType
import org.bukkit.event.block.BlockPlaceEvent
import taboolib.common.platform.event.SubscribeEvent
import taboolib.platform.util.sendLang
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils
import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.util.ExecutorUtils
import me.adriianhdev.plutotems.util.TotemUtil
import org.bukkit.entity.EntityType
import org.bukkit.entity.LivingEntity
import org.bukkit.entity.Player
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils
import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.common.util.ExecutorUtils.run
import me.adriianhdev.plutotems.common.util.PlayerUtil
import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.common.util.TotemUtil.checkType
import me.adriianhdev.plutotems.util.ExecutorUtils
import me.adriianhdev.plutotems.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.util.ExecutorUtils.run
import me.adriianhdev.plutotems.util.PlayerUtil
import me.adriianhdev.plutotems.util.TotemUtil
import me.adriianhdev.plutotems.util.TotemUtil.checkType
import org.bukkit.event.player.PlayerItemConsumeEvent
import taboolib.common.platform.event.SubscribeEvent
import taboolib.platform.util.sendLang
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.common.util.ExecutorUtils.run
import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.common.util.TotemUtil.checkType
import me.adriianhdev.plutotems.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.util.ExecutorUtils.run
import me.adriianhdev.plutotems.util.TotemUtil
import me.adriianhdev.plutotems.util.TotemUtil.checkType
import org.bukkit.event.player.PlayerDropItemEvent
import taboolib.common.platform.event.SubscribeEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.util.ExecutorUtils.checkEffects
import org.bukkit.entity.Player
import org.bukkit.event.inventory.InventoryClickEvent
import org.bukkit.event.inventory.InventoryType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.common.util.ExecutorUtils.run
import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.common.util.TotemUtil.checkType
import me.adriianhdev.plutotems.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.util.ExecutorUtils.run
import me.adriianhdev.plutotems.util.TotemUtil
import me.adriianhdev.plutotems.util.TotemUtil.checkType
import org.bukkit.event.player.PlayerInteractEvent
import taboolib.common.platform.event.EventPriority
import taboolib.common.platform.event.SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.common.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.common.util.ExecutorUtils.run
import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.common.util.TotemUtil.checkType
import me.adriianhdev.plutotems.util.ExecutorUtils.checkCondition
import me.adriianhdev.plutotems.util.ExecutorUtils.checkEffects
import me.adriianhdev.plutotems.util.ExecutorUtils.run
import me.adriianhdev.plutotems.util.TotemUtil
import me.adriianhdev.plutotems.util.TotemUtil.checkType
import org.bukkit.entity.Player
import org.bukkit.event.entity.EntityPickupItemEvent
import taboolib.common.platform.event.SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.common.util.ExecutorUtils.handleAction
import me.adriianhdev.plutotems.util.ExecutorUtils.handleAction
import org.bukkit.entity.Player
import org.bukkit.event.entity.EntityDamageEvent
import taboolib.common.platform.event.EventPriority
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.internal.event
package me.adriianhdev.plutotems.core.event

import me.adriianhdev.plutotems.module.conf.ConfigManager
import me.adriianhdev.plutotems.configuration.ConfigManager
import org.bukkit.entity.Player
import org.bukkit.event.entity.EntityResurrectEvent
import taboolib.common.platform.event.EventPriority
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.adriianhdev.plutotems.module.internal.task
package me.adriianhdev.plutotems.core.task

import me.adriianhdev.plutotems.common.util.TotemUtil
import me.adriianhdev.plutotems.common.util.TotemUtil.isAirOrNull
import me.adriianhdev.plutotems.module.conf.totem.effect.Effect
import me.adriianhdev.plutotems.core.totem.effect.Effect
import me.adriianhdev.plutotems.util.TotemUtil
import me.adriianhdev.plutotems.util.TotemUtil.isAirOrNull
import org.bukkit.Bukkit
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.adriianhdev.plutotems.module.conf.totem
package me.adriianhdev.plutotems.core.totem

import me.adriianhdev.plutotems.common.util.TotemEntity
import me.adriianhdev.plutotems.common.util.TotemSchematic
import me.adriianhdev.plutotems.module.conf.ConfigManager
import me.adriianhdev.plutotems.configuration.ConfigManager
import me.adriianhdev.plutotems.util.TotemEntity
import me.adriianhdev.plutotems.util.TotemSchematic
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack
import taboolib.common.platform.function.adaptPlayer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.adriianhdev.plutotems.module.conf.totem
package me.adriianhdev.plutotems.core.totem

import org.bukkit.inventory.ItemStack

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.adriianhdev.plutotems.module.conf.totem
package me.adriianhdev.plutotems.core.totem

import org.bukkit.inventory.ItemStack

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.adriianhdev.plutotems.module.conf.totem.action
package me.adriianhdev.plutotems.core.totem.action

import org.bukkit.entity.Player

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action
package me.adriianhdev.plutotems.core.totem.action

import me.adriianhdev.plutotems.module.conf.totem.action.impl.*
import me.adriianhdev.plutotems.core.totem.action.impl.*
import org.bukkit.entity.Player
import taboolib.common.platform.function.warning
import java.util.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.common.util.color.colorify
import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import me.adriianhdev.plutotems.util.color.colorify
import org.bukkit.entity.Player
import taboolib.platform.util.sendActionBar

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.common.util.color.colorify
import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import me.adriianhdev.plutotems.util.color.colorify
import org.bukkit.Bukkit
import org.bukkit.boss.BarColor
import org.bukkit.boss.BarStyle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.common.util.color.colorify
import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import me.adriianhdev.plutotems.util.color.colorify
import org.bukkit.entity.Player

object ActionBroadcast : Action {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import org.bukkit.entity.Player

object ActionCommand : Action {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import org.bukkit.Bukkit
import org.bukkit.entity.Player

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import org.bukkit.EntityEffect
import org.bukkit.entity.Player

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import org.bukkit.entity.Player

object ActionFire : Action {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import org.bukkit.entity.Player

object ActionFrozen : Action {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import org.bukkit.entity.Player
import taboolib.platform.util.sendLang

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.common.util.color.colorify
import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import me.adriianhdev.plutotems.util.color.colorify
import org.bukkit.entity.Player

object ActionMessage : Action {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.adriianhdev.plutotems.module.conf.totem.action.impl
package me.adriianhdev.plutotems.core.totem.action.impl

import me.adriianhdev.plutotems.common.plugin.PluTotemsLoader.adventure
import me.adriianhdev.plutotems.common.util.StringUtil.toMiniMessage
import me.adriianhdev.plutotems.module.conf.totem.action.Action
import me.adriianhdev.plutotems.core.totem.action.Action
import me.adriianhdev.plutotems.plugin.PluTotemsLoader.adventure
import me.adriianhdev.plutotems.util.StringUtil.toMiniMessage
import org.bukkit.entity.Player

object ActionMiniMessage : Action {
Expand Down
Loading

0 comments on commit 29d25b6

Please sign in to comment.