From dbe9d31264b29dfabce2aea0193066fce9c0af16 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 19 Aug 2016 19:08:32 +0000 Subject: [PATCH] Player action handlers loaded by MasterHandler. Contributed by Sahar. --- .../data/scripts/handlers/MasterHandler.java | 52 +++++++++++++++++++ .../admincommandhandlers/AdminVitality.java | 5 -- .../handlers/playeractions/AirshipAction.java | 6 --- .../handlers/playeractions/BotReport.java | 6 --- .../playeractions/InstanceZoneInfo.java | 6 --- .../handlers/playeractions/PetAttack.java | 6 --- .../handlers/playeractions/PetHold.java | 6 --- .../handlers/playeractions/PetMove.java | 6 --- .../handlers/playeractions/PetSkillUse.java | 6 --- .../handlers/playeractions/PetStop.java | 6 --- .../handlers/playeractions/PrivateStore.java | 6 --- .../scripts/handlers/playeractions/Ride.java | 6 --- .../handlers/playeractions/RunWalk.java | 6 --- .../playeractions/ServitorAttack.java | 6 --- .../handlers/playeractions/ServitorHold.java | 6 --- .../handlers/playeractions/ServitorMode.java | 6 --- .../handlers/playeractions/ServitorMove.java | 6 --- .../playeractions/ServitorSkillUse.java | 6 --- .../handlers/playeractions/ServitorStop.java | 6 --- .../handlers/playeractions/SitStand.java | 6 --- .../handlers/playeractions/SocialAction.java | 6 --- .../playeractions/TacticalSignTarget.java | 6 --- .../playeractions/TacticalSignUse.java | 6 --- .../playeractions/TeleportBookmark.java | 7 --- .../handlers/playeractions/UnsummonPet.java | 6 --- .../playeractions/UnsummonServitor.java | 6 --- 26 files changed, 52 insertions(+), 150 deletions(-) diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/MasterHandler.java index 938c4da66d..d2cef7280f 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/MasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/MasterHandler.java @@ -34,6 +34,7 @@ import com.l2jmobius.gameserver.handler.ChatHandler; import com.l2jmobius.gameserver.handler.CommunityBoardHandler; import com.l2jmobius.gameserver.handler.IHandler; import com.l2jmobius.gameserver.handler.ItemHandler; +import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.handler.PunishmentHandler; import com.l2jmobius.gameserver.handler.TargetHandler; import com.l2jmobius.gameserver.handler.UserCommandHandler; @@ -204,6 +205,30 @@ import handlers.itemhandlers.SoulShots; import handlers.itemhandlers.SpecialXMas; import handlers.itemhandlers.SpiritShot; import handlers.itemhandlers.SummonItems; +import handlers.playeractions.AirshipAction; +import handlers.playeractions.BotReport; +import handlers.playeractions.InstanceZoneInfo; +import handlers.playeractions.PetAttack; +import handlers.playeractions.PetHold; +import handlers.playeractions.PetMove; +import handlers.playeractions.PetSkillUse; +import handlers.playeractions.PetStop; +import handlers.playeractions.PrivateStore; +import handlers.playeractions.Ride; +import handlers.playeractions.RunWalk; +import handlers.playeractions.ServitorAttack; +import handlers.playeractions.ServitorHold; +import handlers.playeractions.ServitorMode; +import handlers.playeractions.ServitorMove; +import handlers.playeractions.ServitorSkillUse; +import handlers.playeractions.ServitorStop; +import handlers.playeractions.SitStand; +import handlers.playeractions.SocialAction; +import handlers.playeractions.TacticalSignTarget; +import handlers.playeractions.TacticalSignUse; +import handlers.playeractions.TeleportBookmark; +import handlers.playeractions.UnsummonPet; +import handlers.playeractions.UnsummonServitor; import handlers.punishmenthandlers.BanHandler; import handlers.punishmenthandlers.ChatBanHandler; import handlers.punishmenthandlers.JailHandler; @@ -304,6 +329,7 @@ public class MasterHandler TargetHandler.getInstance(), AffectObjectHandler.getInstance(), AffectScopeHandler.getInstance(), + PlayerActionHandler.getInstance() }; private static final Class[][] HANDLERS = @@ -590,6 +616,32 @@ public class MasterHandler SquarePB.class, StaticObjectScope.class, SummonExceptMaster.class, + }, + { + AirshipAction.class, + BotReport.class, + InstanceZoneInfo.class, + PetAttack.class, + PetHold.class, + PetMove.class, + PetSkillUse.class, + PetStop.class, + PrivateStore.class, + Ride.class, + RunWalk.class, + ServitorAttack.class, + ServitorHold.class, + ServitorMode.class, + ServitorMove.class, + ServitorSkillUse.class, + ServitorStop.class, + SitStand.class, + SocialAction.class, + TacticalSignTarget.class, + TacticalSignUse.class, + TeleportBookmark.class, + UnsummonPet.class, + UnsummonServitor.class } }; diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminVitality.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminVitality.java index 065822f3b8..48fa0f04d8 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminVitality.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminVitality.java @@ -99,9 +99,4 @@ public class AdminVitality implements IAdminCommandHandler { return ADMIN_COMMANDS; } - - public static void main(String[] args) - { - new AdminVitality(); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/AirshipAction.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/AirshipAction.java index ac9ca7f8ea..40a4741613 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/AirshipAction.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/AirshipAction.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.instancemanager.AirShipManager; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -78,9 +77,4 @@ public final class AirshipAction implements IPlayerActionHandler } } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new AirshipAction()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/BotReport.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/BotReport.java index 5634d8bb42..5e67124156 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/BotReport.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/BotReport.java @@ -19,7 +19,6 @@ package handlers.playeractions; import com.l2jmobius.Config; import com.l2jmobius.gameserver.datatables.BotReportTable; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -41,9 +40,4 @@ public final class BotReport implements IPlayerActionHandler activeChar.sendMessage("This feature is disabled."); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new BotReport()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/InstanceZoneInfo.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/InstanceZoneInfo.java index 6717035aab..0644b22915 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/InstanceZoneInfo.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/InstanceZoneInfo.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.serverpackets.ExInzoneWaiting; @@ -33,9 +32,4 @@ public final class InstanceZoneInfo implements IPlayerActionHandler { activeChar.sendPacket(new ExInzoneWaiting(activeChar)); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new InstanceZoneInfo()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetAttack.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetAttack.java index e87928e2cc..c57e901049 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetAttack.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetAttack.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.actor.instance.L2PetInstance; @@ -53,9 +52,4 @@ public final class PetAttack implements IPlayerActionHandler } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new PetAttack()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetHold.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetHold.java index 5b79f299e6..0adbbf7898 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetHold.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetHold.java @@ -18,7 +18,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.ai.L2SummonAI; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.actor.instance.L2PetInstance; @@ -53,9 +52,4 @@ public final class PetHold implements IPlayerActionHandler ((L2SummonAI) pet.getAI()).notifyFollowStatusChange(); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new PetHold()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetMove.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetMove.java index edfaec6c88..0626c7d344 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetMove.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetMove.java @@ -18,7 +18,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.actor.instance.L2PetInstance; @@ -54,9 +53,4 @@ public final class PetMove implements IPlayerActionHandler pet.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, activeChar.getTarget().getLocation()); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new PetMove()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetSkillUse.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetSkillUse.java index 185022760e..d85b9d3676 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetSkillUse.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetSkillUse.java @@ -19,7 +19,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.data.xml.impl.PetDataTable; import com.l2jmobius.gameserver.data.xml.impl.SkillData; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.actor.instance.L2PetInstance; @@ -72,9 +71,4 @@ public final class PetSkillUse implements IPlayerActionHandler } } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new PetSkillUse()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetStop.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetStop.java index 117bfc7ebc..fcf0df5093 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetStop.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PetStop.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.actor.instance.L2PetInstance; @@ -52,9 +51,4 @@ public final class PetStop implements IPlayerActionHandler pet.cancelAction(); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new PetStop()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PrivateStore.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PrivateStore.java index 2736f8c627..6ec67501d3 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PrivateStore.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/PrivateStore.java @@ -20,7 +20,6 @@ import java.util.logging.Logger; import com.l2jmobius.gameserver.enums.PrivateStoreType; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.zone.ZoneId; @@ -119,9 +118,4 @@ public final class PrivateStore implements IPlayerActionHandler } } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new PrivateStore()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/Ride.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/Ride.java index ab1565b579..33db6217cf 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/Ride.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/Ride.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -32,9 +31,4 @@ public final class Ride implements IPlayerActionHandler { activeChar.mountPlayer(activeChar.getPet()); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new Ride()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/RunWalk.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/RunWalk.java index 8a88afe650..0d5d0d9384 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/RunWalk.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/RunWalk.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -32,9 +31,4 @@ public final class RunWalk implements IPlayerActionHandler { activeChar.setIsRunning(!activeChar.isRunning()); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new RunWalk()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorAttack.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorAttack.java index 4150a81088..41e2bc7372 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorAttack.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorAttack.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.SystemMessageId; @@ -43,9 +42,4 @@ public final class ServitorAttack implements IPlayerActionHandler activeChar.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_A_SERVITOR); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new ServitorAttack()); - } } \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorHold.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorHold.java index 3f089d069d..9a098310e6 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorHold.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorHold.java @@ -18,7 +18,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.ai.L2SummonAI; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.SystemMessageId; @@ -49,9 +48,4 @@ public final class ServitorHold implements IPlayerActionHandler ((L2SummonAI) s.getAI()).notifyFollowStatusChange(); }); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new ServitorHold()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMode.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMode.java index 4aad1c7db7..19c9e4dd42 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMode.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMode.java @@ -18,7 +18,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.ai.L2SummonAI; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.SystemMessageId; @@ -69,9 +68,4 @@ public final class ServitorMode implements IPlayerActionHandler } } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new ServitorMode()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMove.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMove.java index a0f673990c..216e443431 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMove.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorMove.java @@ -18,7 +18,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.SystemMessageId; @@ -53,9 +52,4 @@ public final class ServitorMove implements IPlayerActionHandler }); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new ServitorMove()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorSkillUse.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorSkillUse.java index fa6bb73c77..60332ed765 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorSkillUse.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorSkillUse.java @@ -19,7 +19,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.data.sql.impl.SummonSkillsTable; import com.l2jmobius.gameserver.data.xml.impl.SkillData; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.L2Summon; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -62,9 +61,4 @@ public final class ServitorSkillUse implements IPlayerActionHandler } }); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new ServitorSkillUse()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorStop.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorStop.java index d6bc51c9a6..36a2791d94 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorStop.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/ServitorStop.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.SystemMessageId; @@ -48,9 +47,4 @@ public final class ServitorStop implements IPlayerActionHandler s.cancelAction(); }); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new ServitorStop()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SitStand.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SitStand.java index 7560c39376..bd46201f81 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SitStand.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SitStand.java @@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.ai.NextAction; import com.l2jmobius.gameserver.enums.MountType; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -89,9 +88,4 @@ public final class SitStand implements IPlayerActionHandler } return true; } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new SitStand()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 959d3cc16f..3b46c485a5 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -20,7 +20,6 @@ import com.l2jmobius.gameserver.ai.CtrlEvent; import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.ai.NextAction; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -316,9 +315,4 @@ public final class SocialAction implements IPlayerActionHandler partner.sendPacket(new ExAskCoupleAction(player.getObjectId(), id)); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new SocialAction()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignTarget.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignTarget.java index b659061eb6..df457b8632 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignTarget.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignTarget.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.network.serverpackets.ActionFailed; @@ -39,9 +38,4 @@ public final class TacticalSignTarget implements IPlayerActionHandler activeChar.getParty().setTargetBasedOnTacticalSignId(activeChar, data.getOptionId()); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new TacticalSignTarget()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignUse.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignUse.java index 9b259ca99b..3b64f7dca3 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignUse.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TacticalSignUse.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -40,9 +39,4 @@ public final class TacticalSignUse implements IPlayerActionHandler activeChar.getParty().addTacticalSign(activeChar, data.getOptionId(), (L2Character) activeChar.getTarget()); } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new TacticalSignUse()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TeleportBookmark.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TeleportBookmark.java index fa83a70ec2..1d8c789a02 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TeleportBookmark.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/TeleportBookmark.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -26,11 +25,5 @@ public final class TeleportBookmark implements IPlayerActionHandler @Override public void useAction(L2PcInstance activeChar, ActionDataHolder data, boolean ctrlPressed, boolean shiftPressed) { - - } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new TeleportBookmark()); } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonPet.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonPet.java index baf0c3fef6..8e521732f7 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonPet.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonPet.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.L2Summon; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -64,9 +63,4 @@ public final class UnsummonPet implements IPlayerActionHandler pet.unSummon(activeChar); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new UnsummonPet()); - } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java index 7dad0c8322..68a7325452 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java @@ -17,7 +17,6 @@ package handlers.playeractions; import com.l2jmobius.gameserver.handler.IPlayerActionHandler; -import com.l2jmobius.gameserver.handler.PlayerActionHandler; import com.l2jmobius.gameserver.model.ActionDataHolder; import com.l2jmobius.gameserver.model.actor.L2Summon; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -62,9 +61,4 @@ public final class UnsummonServitor implements IPlayerActionHandler activeChar.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_A_SERVITOR); } } - - public static void main(String[] args) - { - PlayerActionHandler.getInstance().registerHandler(new UnsummonServitor()); - } }