Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 22nd, 2010 | Syntax: Java | Size: 11.46 KB | Hits: 78 | Expires: Never
Copy text to clipboard
  1. /*
  2.  * This program is free software; you can redistribute it and/or modify
  3.  * it under the terms of the GNU General Public License as published by
  4.  * the Free Software Foundation; either version 2, or (at your option)
  5.  * any later version.
  6.  *
  7.  * This program is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.  * GNU General Public License for more details.
  11.  *
  12.  * You should have received a copy of the GNU General Public License
  13.  * along with this program; if not, write to the Free Software
  14.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  15.  * 02111-1307, USA.
  16.  *
  17.  * <http://www.gnu.org/copyleft/gpl.html>
  18.  */
  19. package handlers;
  20.  
  21. import handlers.admin_handlers.AdminAdmin;
  22. import handlers.admin_handlers.AdminAnnouncements;
  23. import handlers.admin_handlers.AdminBBS;
  24. import handlers.admin_handlers.AdminBan;
  25. import handlers.admin_handlers.AdminBanChat;
  26. import handlers.admin_handlers.AdminCTFEngine;
  27. import handlers.admin_handlers.AdminCache;
  28. import handlers.admin_handlers.AdminChangeAccessLevel;
  29. import handlers.admin_handlers.AdminCreateItem;
  30. import handlers.admin_handlers.AdminCursedWeapons;
  31. import handlers.admin_handlers.AdminDMEngine;
  32. import handlers.admin_handlers.AdminDelete;
  33. import handlers.admin_handlers.AdminDisconnect;
  34. import handlers.admin_handlers.AdminDoorControl;
  35. import handlers.admin_handlers.AdminEditChar;
  36. import handlers.admin_handlers.AdminEditNpc;
  37. import handlers.admin_handlers.AdminEffects;
  38. import handlers.admin_handlers.AdminEnchant;
  39. import handlers.admin_handlers.AdminEventEngine;
  40. import handlers.admin_handlers.AdminExpSp;
  41. import handlers.admin_handlers.AdminFightCalculator;
  42. import handlers.admin_handlers.AdminGeoEditor;
  43. import handlers.admin_handlers.AdminGeodata;
  44. import handlers.admin_handlers.AdminGm;
  45. import handlers.admin_handlers.AdminGmChat;
  46. import handlers.admin_handlers.AdminHeal;
  47. import handlers.admin_handlers.AdminHelpPage;
  48. import handlers.admin_handlers.AdminInvul;
  49. import handlers.admin_handlers.AdminKick;
  50. import handlers.admin_handlers.AdminKill;
  51. import handlers.admin_handlers.AdminLevel;
  52. import handlers.admin_handlers.AdminLogin;
  53. import handlers.admin_handlers.AdminMammon;
  54. import handlers.admin_handlers.AdminManor;
  55. import handlers.admin_handlers.AdminMenu;
  56. import handlers.admin_handlers.AdminMobGroup;
  57. import handlers.admin_handlers.AdminMonsterRace;
  58. import handlers.admin_handlers.AdminPForge;
  59. import handlers.admin_handlers.AdminPathNode;
  60. import handlers.admin_handlers.AdminPetition;
  61. import handlers.admin_handlers.AdminPledge;
  62. import handlers.admin_handlers.AdminPolymorph;
  63. import handlers.admin_handlers.AdminQuest;
  64. import handlers.admin_handlers.AdminRepairChar;
  65. import handlers.admin_handlers.AdminRes;
  66. import handlers.admin_handlers.AdminRideWyvern;
  67. import handlers.admin_handlers.AdminShop;
  68. import handlers.admin_handlers.AdminShutdown;
  69. import handlers.admin_handlers.AdminSiege;
  70. import handlers.admin_handlers.AdminSkill;
  71. import handlers.admin_handlers.AdminSpawn;
  72. import handlers.admin_handlers.AdminTarget;
  73. import handlers.admin_handlers.AdminTeleport;
  74. import handlers.admin_handlers.AdminTest;
  75. import handlers.admin_handlers.AdminTvTEngine;
  76. import handlers.admin_handlers.AdminUnblockIp;
  77. import handlers.admin_handlers.AdminZone;
  78. import handlers.chat_handlers.Announce;
  79. import handlers.chat_handlers.ChatAll;
  80. import handlers.chat_handlers.ChatAlliance;
  81. import handlers.chat_handlers.ChatClan;
  82. import handlers.chat_handlers.ChatHeroVoice;
  83. import handlers.chat_handlers.ChatParty;
  84. import handlers.chat_handlers.ChatPartyRoomAll;
  85. import handlers.chat_handlers.ChatPartyRoomCommander;
  86. import handlers.chat_handlers.ChatPetition;
  87. import handlers.chat_handlers.ChatShout;
  88. import handlers.chat_handlers.ChatTell;
  89. import handlers.chat_handlers.ChatTrade;
  90. import handlers.command_handlers.ChannelDelete;
  91. import handlers.command_handlers.ChannelLeave;
  92. import handlers.command_handlers.ChannelListUpdate;
  93. import handlers.command_handlers.ClanPenalty;
  94. import handlers.command_handlers.ClanWarsList;
  95. import handlers.command_handlers.DisMount;
  96. import handlers.command_handlers.Escape;
  97. import handlers.command_handlers.Loc;
  98. import handlers.command_handlers.Mount;
  99. import handlers.command_handlers.OlympiadStat;
  100. import handlers.command_handlers.PartyInfo;
  101. import handlers.command_handlers.Time;
  102. import handlers.custom_handlers.CustomDefaults;
  103. import handlers.custom_handlers.DonationShop;
  104. import handlers.item_handlers.BeastSoulShot;
  105. import handlers.item_handlers.BeastSpice;
  106. import handlers.item_handlers.BeastSpiritShot;
  107. import handlers.item_handlers.BlessedSpiritShot;
  108. import handlers.item_handlers.Book;
  109. import handlers.item_handlers.CharChangePotions;
  110. import handlers.item_handlers.ChestKey;
  111. import handlers.item_handlers.ChristmasTree;
  112. import handlers.item_handlers.CompBlessedSpiritShotPacks;
  113. import handlers.item_handlers.CompShotPacks;
  114. import handlers.item_handlers.CompSpiritShotPacks;
  115. import handlers.item_handlers.CrystalCarol;
  116. import handlers.item_handlers.EnchantScrolls;
  117. import handlers.item_handlers.EnergyStone;
  118. import handlers.item_handlers.ExtractableItems;
  119. import handlers.item_handlers.Firework;
  120. import handlers.item_handlers.FishShots;
  121. import handlers.item_handlers.Harvester;
  122. import handlers.item_handlers.ItemHall;
  123. import handlers.item_handlers.Maps;
  124. import handlers.item_handlers.MercTicket;
  125. import handlers.item_handlers.MysteryPotion;
  126. import handlers.item_handlers.PaganKeys;
  127. import handlers.item_handlers.Potions;
  128. import handlers.item_handlers.Recipes;
  129. import handlers.item_handlers.Remedy;
  130. import handlers.item_handlers.RollingDice;
  131. import handlers.item_handlers.ScrollOfEscape;
  132. import handlers.item_handlers.ScrollOfResurrection;
  133. import handlers.item_handlers.Scrolls;
  134. import handlers.item_handlers.Seed;
  135. import handlers.item_handlers.SevenSignsRecord;
  136. import handlers.item_handlers.SoulCrystals;
  137. import handlers.item_handlers.SoulShots;
  138. import handlers.item_handlers.SpecialXMas;
  139. import handlers.item_handlers.SpiritShot;
  140. import handlers.item_handlers.SummonItems;
  141. import handlers.skill_handlers.BalanceLife;
  142. import handlers.skill_handlers.BeastFeed;
  143. import handlers.skill_handlers.Blow;
  144. import handlers.skill_handlers.Charge;
  145. import handlers.skill_handlers.CombatPointHeal;
  146. import handlers.skill_handlers.Continuous;
  147. import handlers.skill_handlers.CpDam;
  148. import handlers.skill_handlers.CpDamPercent;
  149. import handlers.skill_handlers.Craft;
  150. import handlers.skill_handlers.DeluxeKey;
  151. import handlers.skill_handlers.Disablers;
  152. import handlers.skill_handlers.DrainSoul;
  153. import handlers.skill_handlers.Fishing;
  154. import handlers.skill_handlers.FishingSkill;
  155. import handlers.skill_handlers.GetPlayer;
  156. import handlers.skill_handlers.GiveSp;
  157. import handlers.skill_handlers.Harvest;
  158. import handlers.skill_handlers.Heal;
  159. import handlers.skill_handlers.InstantJump;
  160. import handlers.skill_handlers.ManaHeal;
  161. import handlers.skill_handlers.Manadam;
  162. import handlers.skill_handlers.Mdam;
  163. import handlers.skill_handlers.Pdam;
  164. import handlers.skill_handlers.Recall;
  165. import handlers.skill_handlers.Resurrect;
  166. import handlers.skill_handlers.SiegeFlag;
  167. import handlers.skill_handlers.Sow;
  168. import handlers.skill_handlers.Spoil;
  169. import handlers.skill_handlers.StrSiegeAssault;
  170. import handlers.skill_handlers.SummonFriend;
  171. import handlers.skill_handlers.SummonTreasureKey;
  172. import handlers.skill_handlers.Sweep;
  173. import handlers.skill_handlers.TakeCastle;
  174. import handlers.skill_handlers.Unlock;
  175. import handlers.voiced_handlers.EventJoin;
  176. import handlers.voiced_handlers.Wedding;
  177. import handlers.voiced_handlers.castle;
  178. import handlers.voiced_handlers.set;
  179. import handlers.voiced_handlers.stats;
  180.  
  181. import com.l2jarchid.gameserver.scripting.engines.HandlerLoader;
  182.  
  183. /**
  184.  * @author  Setekh
  185.  */
  186. public class MasterHandler
  187. {
  188.         private static HandlerLoader[] loader =
  189.         {
  190.                 // Admins
  191.                 new AdminAdmin(),
  192.                 new AdminAnnouncements(),
  193.                 new AdminBan(),
  194.                 new AdminBanChat(),
  195.                 new AdminBBS(),
  196.                 new AdminCache(),
  197.                 new AdminChangeAccessLevel(),
  198.                 new AdminCreateItem(),
  199.                 new AdminCTFEngine(),
  200.                 new AdminCursedWeapons(),
  201.                 new AdminDelete(),
  202.                 new AdminDisconnect(),
  203.                 new AdminDMEngine(),
  204.                 new AdminDoorControl(),
  205.                 new AdminEditChar(),
  206.                 new AdminEditNpc(),
  207.                 new AdminEffects(),
  208.                 new AdminEnchant(),
  209.                 new AdminEventEngine(),
  210.                 new AdminExpSp(),
  211.                 new AdminFightCalculator(),
  212.                 new AdminGeodata(),
  213.                 new AdminGeoEditor(),
  214.                 new AdminGm(),
  215.                 new AdminGmChat(),
  216.                 new AdminHeal(),
  217.                 new AdminHelpPage(),
  218.                 new AdminInvul(),
  219.                 new AdminKick(),
  220.                 new AdminKill(),
  221.                 new AdminLevel(),
  222.                 new AdminLogin(),
  223.                 new AdminMammon(),
  224.                 new AdminManor(),
  225.                 new AdminMenu(),
  226.                 new AdminMobGroup(),
  227.                 new AdminMonsterRace(),
  228.                 new AdminPathNode(),
  229.                 new AdminPetition(),
  230.                 new AdminPForge(),
  231.                 new AdminPledge(),
  232.                 new AdminPolymorph(),
  233.                 new AdminQuest(),
  234.                 new AdminRepairChar(),
  235.                 new AdminRes(),
  236.                 new AdminRideWyvern(),
  237.                 new AdminShop(),
  238.                 new AdminShutdown(),
  239.                 new AdminSiege(),
  240.                 new AdminSkill(),
  241.                 new AdminSpawn(),
  242.                 new AdminTarget(),
  243.                 new AdminTeleport(),
  244.                 new AdminTest(),
  245.                 new AdminTvTEngine(),
  246.                 new AdminUnblockIp(),
  247.                 new AdminZone(),
  248.                
  249.                 // Chats
  250.                 new Announce(),
  251.                 new ChatAll(),
  252.                 new ChatAlliance(),
  253.                 new ChatClan(),
  254.                 new ChatHeroVoice(),
  255.                 new ChatParty(),
  256.                 new ChatPartyRoomAll(),
  257.                 new ChatPartyRoomCommander(),
  258.                 new ChatPetition(),
  259.                 new ChatShout(),
  260.                 new ChatTell(),
  261.                 new ChatTrade(),
  262.  
  263.                 // Skills
  264.                 new BalanceLife(),
  265.                 new BeastFeed(),
  266.                 new Blow(),
  267.                 new Charge(),
  268.                 new CombatPointHeal(),
  269.                 new Continuous(),
  270.                 new CpDam(),
  271.                 new CpDamPercent(),
  272.                 new Craft(),
  273.                 new DeluxeKey(),
  274.                 new Disablers(),
  275.                 new DrainSoul(),
  276.                 new Fishing(),
  277.                 new FishingSkill(),
  278.                 new GetPlayer(),
  279.                 new GiveSp(),
  280.                 new Harvest(),
  281.                 new Heal(),
  282.                 new InstantJump(),
  283.                 new Manadam(),
  284.                 new ManaHeal(),
  285.                 new Mdam(),
  286.                 new Pdam(),
  287.                 new Recall(),
  288.                 new Resurrect(),
  289.                 new SiegeFlag(),
  290.                 new Sow(),
  291.                 new Spoil(),
  292.                 new StrSiegeAssault(),
  293.                 new SummonFriend(),
  294.                 new SummonTreasureKey(),
  295.                 new Sweep(),
  296.                 new TakeCastle(),
  297.                 new Unlock(),
  298.  
  299.                 // Customs
  300.                 new CustomDefaults(),
  301.                 new DonationShop(),
  302.  
  303.                 // Items
  304.                 new BeastSoulShot(),
  305.                 new BeastSpice(),
  306.                 new BeastSpiritShot(),
  307.                 new BlessedSpiritShot(),
  308.                 new Book(),
  309.                 new CharChangePotions(),
  310.                 new ChestKey(),
  311.                 new ChristmasTree(),
  312.                 new CompBlessedSpiritShotPacks(),
  313.                 new CompShotPacks(),
  314.                 new CompSpiritShotPacks(),
  315.                 new CrystalCarol(),
  316.                 new EnchantScrolls(),
  317.                 new EnergyStone(),
  318.                 new ExtractableItems(),
  319.                 new Firework(),
  320.                 new FishShots(),
  321.                 new Harvester(),
  322.                 new ItemHall(),
  323.                 new Maps(),
  324.                 new MercTicket(),
  325.                 new MysteryPotion(),
  326.                 new PaganKeys(),
  327.                 new Potions(),
  328.                 new Recipes(),
  329.                 new Remedy(),
  330.                 new RollingDice(),
  331.                 new ScrollOfEscape(),
  332.                 new ScrollOfResurrection(),
  333.                 new Scrolls(),
  334.                 new Seed(),
  335.                 new SevenSignsRecord(),
  336.                 new SoulCrystals(),
  337.                 new SoulShots(),
  338.                 new SpecialXMas(),
  339.                 new SpiritShot(),
  340.                 new SummonItems(),
  341.                
  342.                 // User Commands
  343.                 new ChannelDelete(),
  344.                 new ChannelLeave(),
  345.                 new ChannelListUpdate(),
  346.                 new ClanPenalty(),
  347.                 new ClanWarsList(),
  348.                 new DisMount(),
  349.                 new Escape(),
  350.                 new Loc(),
  351.                 new Mount(),
  352.                 new OlympiadStat(),
  353.                 new PartyInfo(),
  354.                 new Time(),
  355.                
  356.                 // Voiced
  357.                 new castle(),
  358.                 new EventJoin(),
  359.                 new set(),
  360.                 new stats(),
  361.                 new Wedding(),
  362.  
  363.         };
  364.        
  365.         public static void main(String[] abc)
  366.         {
  367.                 for(HandlerLoader handler : loader)
  368.                         handler.onLoad();
  369.         }
  370. }