diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/ActionFactory.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/ActionFactory.java index 3f9288b5..52610708 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/ActionFactory.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/ActionFactory.java @@ -18,11 +18,11 @@ import java.util.Map; import fr.neatmonster.nocheatplus.actions.types.CancelAction; import fr.neatmonster.nocheatplus.actions.types.LogAction; -import fr.neatmonster.nocheatplus.actions.types.penalty.CancelPenalty; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyAction; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyNode; +import fr.neatmonster.nocheatplus.actions.types.PenaltyAction; import fr.neatmonster.nocheatplus.checks.ViolationData; import fr.neatmonster.nocheatplus.logging.StaticLog; +import fr.neatmonster.nocheatplus.penalties.CancelPenalty; +import fr.neatmonster.nocheatplus.penalties.PenaltyNode; import fr.neatmonster.nocheatplus.utilities.CheckUtils; /** diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/CancelAction.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/CancelAction.java index e16bfc07..916dd3b3 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/CancelAction.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/CancelAction.java @@ -16,9 +16,8 @@ package fr.neatmonster.nocheatplus.actions.types; import fr.neatmonster.nocheatplus.actions.AbstractActionList; import fr.neatmonster.nocheatplus.actions.ActionData; -import fr.neatmonster.nocheatplus.actions.types.penalty.CancelPenalty; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyAction; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyNode; +import fr.neatmonster.nocheatplus.penalties.CancelPenalty; +import fr.neatmonster.nocheatplus.penalties.PenaltyNode; /** * Sole purpose is to indicate that an action is to be cancelled 100% (as diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/PenaltyAction.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/PenaltyAction.java similarity index 94% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/PenaltyAction.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/PenaltyAction.java index f1c8aea8..24699018 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/PenaltyAction.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/PenaltyAction.java @@ -12,11 +12,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.actions.types; import fr.neatmonster.nocheatplus.actions.AbstractActionList; import fr.neatmonster.nocheatplus.actions.Action; import fr.neatmonster.nocheatplus.actions.ActionData; +import fr.neatmonster.nocheatplus.penalties.IPenaltyList; +import fr.neatmonster.nocheatplus.penalties.PenaltyNode; /** * Penalty action, referencing a certain penalty defined elsewhere.
diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/Check.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/Check.java index 167fc2aa..f4e6126e 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/Check.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/Check.java @@ -22,11 +22,11 @@ import org.bukkit.entity.Player; import fr.neatmonster.nocheatplus.NCPAPIProvider; import fr.neatmonster.nocheatplus.actions.ActionList; -import fr.neatmonster.nocheatplus.actions.types.penalty.IPenaltyList; import fr.neatmonster.nocheatplus.compat.MCAccess; import fr.neatmonster.nocheatplus.components.debug.IDebugPlayer; import fr.neatmonster.nocheatplus.components.registry.event.IGenericInstanceHandle; import fr.neatmonster.nocheatplus.hooks.NCPHookManager; +import fr.neatmonster.nocheatplus.penalties.IPenaltyList; import fr.neatmonster.nocheatplus.players.DataManager; import fr.neatmonster.nocheatplus.players.ExecutionHistory; import fr.neatmonster.nocheatplus.players.IPlayerData; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/ViolationData.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/ViolationData.java index ad3b26d0..42e00cf4 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/ViolationData.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/ViolationData.java @@ -24,13 +24,13 @@ import fr.neatmonster.nocheatplus.actions.ActionData; import fr.neatmonster.nocheatplus.actions.ActionList; import fr.neatmonster.nocheatplus.actions.ParameterName; import fr.neatmonster.nocheatplus.actions.types.GenericLogAction; -import fr.neatmonster.nocheatplus.actions.types.penalty.DefaultPenaltyList; -import fr.neatmonster.nocheatplus.actions.types.penalty.IPenaltyList; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyAction; +import fr.neatmonster.nocheatplus.actions.types.PenaltyAction; import fr.neatmonster.nocheatplus.checks.access.IViolationInfo; import fr.neatmonster.nocheatplus.compat.BridgeHealth; import fr.neatmonster.nocheatplus.logging.StaticLog; import fr.neatmonster.nocheatplus.logging.StreamID; +import fr.neatmonster.nocheatplus.penalties.DefaultPenaltyList; +import fr.neatmonster.nocheatplus.penalties.IPenaltyList; import fr.neatmonster.nocheatplus.permissions.RegisteredPermission; /** @@ -193,6 +193,10 @@ public class ViolationData implements IViolationInfo, ActionData { if (!penaltyList.isEmpty()) { penaltyList.applyAllApplicablePenalties(player, true); } + /* + * TODO: Concept for penalties running actions. E.g. + * penaltyList.applyAllApplicablePenalties(ViolationData, true); + */ } catch (final Exception e) { StaticLog.logSevere(e); // On exceptions cancel events. diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java index 179e47d2..f94d2acd 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java @@ -23,7 +23,6 @@ import org.bukkit.potion.PotionEffectType; import fr.neatmonster.nocheatplus.NCPAPIProvider; import fr.neatmonster.nocheatplus.actions.ParameterName; -import fr.neatmonster.nocheatplus.actions.types.penalty.IPenaltyList; import fr.neatmonster.nocheatplus.checks.Check; import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.ViolationData; @@ -33,6 +32,7 @@ import fr.neatmonster.nocheatplus.checks.moving.model.LiftOffEnvelope; import fr.neatmonster.nocheatplus.checks.moving.model.PlayerMoveInfo; import fr.neatmonster.nocheatplus.checks.moving.util.AuxMoving; import fr.neatmonster.nocheatplus.checks.moving.util.MovingUtil; +import fr.neatmonster.nocheatplus.penalties.IPenaltyList; import fr.neatmonster.nocheatplus.players.IPlayerData; import fr.neatmonster.nocheatplus.utilities.StringUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java index b114859d..9b70e30f 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java @@ -34,8 +34,6 @@ import org.bukkit.event.player.PlayerItemHeldEvent; import org.bukkit.inventory.ItemStack; import fr.neatmonster.nocheatplus.NCPAPIProvider; -import fr.neatmonster.nocheatplus.actions.types.penalty.DefaultPenaltyList; -import fr.neatmonster.nocheatplus.actions.types.penalty.IPenaltyList; import fr.neatmonster.nocheatplus.checks.CheckListener; import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.combined.Combined; @@ -62,6 +60,8 @@ import fr.neatmonster.nocheatplus.components.data.IData; import fr.neatmonster.nocheatplus.components.registry.event.IGenericInstanceHandle; import fr.neatmonster.nocheatplus.components.registry.factory.IFactoryOne; import fr.neatmonster.nocheatplus.components.registry.feature.JoinLeaveListener; +import fr.neatmonster.nocheatplus.penalties.DefaultPenaltyList; +import fr.neatmonster.nocheatplus.penalties.IPenaltyList; import fr.neatmonster.nocheatplus.permissions.Permissions; import fr.neatmonster.nocheatplus.players.DataManager; import fr.neatmonster.nocheatplus.players.IPlayerData; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/AbstractPenalty.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/AbstractPenalty.java similarity index 96% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/AbstractPenalty.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/AbstractPenalty.java index 08b92948..89e3f497 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/AbstractPenalty.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/AbstractPenalty.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; /** * Convenience implementation for input-specific effects (other than Player). diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/AbstractPlayerPenalty.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/AbstractPlayerPenalty.java similarity index 94% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/AbstractPlayerPenalty.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/AbstractPlayerPenalty.java index 9dcf4f54..e3dc29cf 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/AbstractPlayerPenalty.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/AbstractPlayerPenalty.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; import org.bukkit.entity.Player; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/CancelPenalty.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/CancelPenalty.java similarity index 96% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/CancelPenalty.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/CancelPenalty.java index 8aa160ec..b5bb8520 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/CancelPenalty.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/CancelPenalty.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; /** * This penalty does nothing. It's presence solely indicates that an action is diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/DefaultPenaltyList.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/DefaultPenaltyList.java similarity index 98% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/DefaultPenaltyList.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/DefaultPenaltyList.java index 0f5acc8c..2156a759 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/DefaultPenaltyList.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/DefaultPenaltyList.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; import java.util.Iterator; import java.util.LinkedHashMap; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyFactory.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyFactory.java similarity index 92% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyFactory.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyFactory.java index 62214bfe..e085449b 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyFactory.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyFactory.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; public interface IPenaltyFactory { diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyFactoryFactory.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyFactoryFactory.java similarity index 95% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyFactoryFactory.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyFactoryFactory.java index 90ea9044..edbd4e59 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyFactoryFactory.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyFactoryFactory.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; import org.bukkit.configuration.MemorySection; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyList.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyList.java similarity index 97% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyList.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyList.java index ac82b1b1..1196eeaa 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyList.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyList.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; /** * Contain applicable penalty types that need to be handled outside of diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyReference.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyReference.java similarity index 94% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyReference.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyReference.java index ae8d8624..00d00448 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/IPenaltyReference.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/IPenaltyReference.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; /** * A reference to a penalty by id. Concept-wise this is meant for an early diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/Penalty.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/Penalty.java similarity index 96% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/Penalty.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/Penalty.java index 1c2c3d79..c4a810a9 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/Penalty.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/Penalty.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; /** * Penalty for one type of input. diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/PenaltyNode.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/PenaltyNode.java similarity index 98% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/PenaltyNode.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/PenaltyNode.java index 184e7ac0..abb897e1 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/PenaltyNode.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/PenaltyNode.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty; +package fr.neatmonster.nocheatplus.penalties; import java.util.Collection; import java.util.Random; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyEntityDamage.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyEntityDamage.java similarity index 87% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyEntityDamage.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyEntityDamage.java index ff9961e6..a0aa7cb0 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyEntityDamage.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyEntityDamage.java @@ -12,11 +12,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty.fight; +package fr.neatmonster.nocheatplus.penalties.fight; import org.bukkit.event.entity.EntityDamageEvent; -import fr.neatmonster.nocheatplus.actions.types.penalty.AbstractPenalty; +import fr.neatmonster.nocheatplus.penalties.AbstractPenalty; /** * Basic fight specific penalty. diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyEntityDamageByEntity.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyEntityDamageByEntity.java similarity index 89% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyEntityDamageByEntity.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyEntityDamageByEntity.java index 73d7a70a..f7a363cd 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyEntityDamageByEntity.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyEntityDamageByEntity.java @@ -12,11 +12,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty.fight; +package fr.neatmonster.nocheatplus.penalties.fight; import org.bukkit.event.entity.EntityDamageByEntityEvent; -import fr.neatmonster.nocheatplus.actions.types.penalty.AbstractPenalty; +import fr.neatmonster.nocheatplus.penalties.AbstractPenalty; /** * Specifically target damage done by entities to entities. diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyMultiplyDamage.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyMultiplyDamage.java similarity index 95% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyMultiplyDamage.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyMultiplyDamage.java index 553ce560..4c772e6e 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyMultiplyDamage.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/penalties/fight/FightPenaltyMultiplyDamage.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.actions.types.penalty.fight; +package fr.neatmonster.nocheatplus.penalties.fight; import org.bukkit.event.entity.EntityDamageEvent; diff --git a/NCPPlugin/src/test/java/fr/neatmonster/nocheatplus/test/TestActions.java b/NCPPlugin/src/test/java/fr/neatmonster/nocheatplus/test/TestActions.java index 86286e94..de56858b 100644 --- a/NCPPlugin/src/test/java/fr/neatmonster/nocheatplus/test/TestActions.java +++ b/NCPPlugin/src/test/java/fr/neatmonster/nocheatplus/test/TestActions.java @@ -22,12 +22,12 @@ import fr.neatmonster.nocheatplus.NCPAPIProvider; import fr.neatmonster.nocheatplus.PluginTests; import fr.neatmonster.nocheatplus.actions.Action; import fr.neatmonster.nocheatplus.actions.ActionList; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyAction; -import fr.neatmonster.nocheatplus.actions.types.penalty.PenaltyNode; +import fr.neatmonster.nocheatplus.actions.types.PenaltyAction; import fr.neatmonster.nocheatplus.checks.ViolationData; import fr.neatmonster.nocheatplus.config.ConfPaths; import fr.neatmonster.nocheatplus.config.ConfigFile; import fr.neatmonster.nocheatplus.config.DefaultConfig; +import fr.neatmonster.nocheatplus.penalties.PenaltyNode; import fr.neatmonster.nocheatplus.permissions.PermissionRegistry; public class TestActions {