### Eclipse Workspace Patch 1.0
#P L2J_DataPack
Index: dist/game/data/html/mods/TownInvasion/started.htm
===================================================================
--- dist/game/data/html/mods/TownInvasion/started.htm	(revision 0)
+++ dist/game/data/html/mods/TownInvasion/started.htm	(working copy)
@@ -0,0 +1,9 @@
+<html><body><title>Town Invasion</title>
+<center>
+<br>
+Invaded town: %town%
+<br>
+Currently spawning %wave%.
+
+</center>
+</body></html>
\ No newline at end of file
Index: build.xml
===================================================================
--- build.xml	(revision 10247)
+++ build.xml	(working copy)
@@ -25,7 +25,7 @@
 	<property name="build.dist.game" location="${build.dist}/game" />
 	<property name="build.dist.login" location="${build.dist}/login" />
 
-	<target name="init" depends="checkRequirements,getChangelogDateVersion" description="Create the output directories.">
+	<target name="init" description="Create the output directories.">
 		<mkdir dir="${build}" />
 	</target>
 
@@ -40,34 +40,4 @@
 	<target name="build" depends="dist">
 		<zip destfile="${build}/L2J_DataPack.zip" basedir="${build.dist}" level="9" />
 	</target>
-
-	<target name="checkRequirements" description="Check Requirements.">
-		<fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
-			<condition>
-				<not>
-					<antversion atleast="1.8.2" />
-				</not>
-			</condition>
-		</fail>
-	</target>
-
-	<target name="getChangelogDateVersion" description="Get Changelog, Date, Version.">
-		<exec dir="${basedir}" executable="svn" outputproperty="l2j.changelog">
-			<arg value="log" />
-			<arg value="--stop-on-copy" />
-		</exec>
-		<tstamp>
-			<format property="build.tstamp" pattern="dd/MM/yyyy HH:mm" />
-		</tstamp>
-		<exec dir="${basedir}" executable="svnversion" outputproperty="l2j.version">
-			<arg value="-c" />
-			<redirector>
-				<outputfilterchain>
-					<tokenfilter>
-						<replaceregex pattern="[0-9]+\:" replace="" />
-					</tokenfilter>
-				</outputfilterchain>
-			</redirector>
-		</exec>
-	</target>
 </project>
\ No newline at end of file
Index: dist/game/data/scripts/handlers/admincommandhandlers/AdminTownInvasion.java
===================================================================
--- dist/game/data/scripts/handlers/admincommandhandlers/AdminTownInvasion.java	(revision 0)
+++ dist/game/data/scripts/handlers/admincommandhandlers/AdminTownInvasion.java	(working copy)
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2004-2013 L2J DataPack
+ * 
+ * This file is part of L2J DataPack.
+ * 
+ * L2J DataPack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * L2J DataPack is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package handlers.admincommandhandlers;
+
+import java.util.Calendar;
+import java.util.StringTokenizer;
+
+import com.l2jserver.gameserver.ThreadPoolManager;
+import com.l2jserver.gameserver.handler.IAdminCommandHandler;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.entity.TownInvasion.TownInvasionEvent;
+import com.l2jserver.gameserver.model.entity.TownInvasion.TownInvasionManager;
+
+public class AdminTownInvasion implements IAdminCommandHandler
+{
+	private static final String[] ADMIN_COMMANDS =
+	{
+		"admin_ti_start",
+		"admin_ti_end",
+	};
+	
+	@Override
+	public boolean useAdminCommand(String command, L2PcInstance activeChar)
+	{
+		StringTokenizer st = new StringTokenizer(command);
+		st.nextToken();
+		
+		if (command.startsWith("admin_ti_start"))
+		{
+			TownInvasionManager.getInstance().setStartTime(Calendar.getInstance().getTimeInMillis());
+			ThreadPoolManager.getInstance().executeTask(TownInvasionManager.getInstance().get_task());
+			
+			activeChar.sendMessage("Town invasion started");
+		}
+		else if (command.startsWith("admin_ti_end"))
+		{
+			TownInvasionEvent.getInstance().eventStop();
+			activeChar.sendMessage("Town invasion ended");
+		}
+		return true;
+	}
+	
+	@Override
+	public String[] getAdminCommandList()
+	{
+		return ADMIN_COMMANDS;
+	}
+}
\ No newline at end of file
Index: dist/game/data/xsd/adminCommands.xsd
===================================================================
--- dist/game/data/xsd/adminCommands.xsd	(revision 10247)
+++ dist/game/data/xsd/adminCommands.xsd	(working copy)
@@ -461,6 +461,8 @@
 									<xs:enumeration value="admin_territory_war_time" />
 									<xs:enumeration value="admin_territory_war" />
 									<xs:enumeration value="admin_territory_wards_list" />
+									<xs:enumeration value="admin_ti_start" />
+									<xs:enumeration value="admin_ti_end" />
 									<xs:enumeration value="admin_tracert" />
 									<xs:enumeration value="admin_tradeoff" />
 									<xs:enumeration value="admin_transform_menu" />
Index: dist/game/data/html/mods/TownInvasion/sign.htm
===================================================================
--- dist/game/data/html/mods/TownInvasion/sign.htm	(revision 0)
+++ dist/game/data/html/mods/TownInvasion/sign.htm	(working copy)
@@ -0,0 +1,7 @@
+<html><body><title>Town Invasion</title>
+<center>
+<br>
+<br>
+<a action="bypass -h npc_%objectId%_ti_reg">%reg%</a>
+</center>
+</body></html>
\ No newline at end of file
Index: dist/game/data/html/default/33000.htm
===================================================================
--- dist/game/data/html/default/33000.htm	(revision 0)
+++ dist/game/data/html/default/33000.htm	(working copy)
@@ -0,0 +1,4 @@
+<html><body><title>Town Invasion</title>
+<br>
+<a action="bypass -h npc_%objectId%_ti_reg">%reg%</a>
+</body></html>
\ No newline at end of file
