]> jfr.im git - irc/borknet/trunk.git/blob - Start.java
git-svn-id: https://svn.code.sf.net/p/borknet-dev-com/code/borknet_services/trunk...
[irc/borknet/trunk.git] / Start.java
1 /**
2 #
3 # BorkNet Services Core
4 #
5
6 #
7 # Copyright (C) 2004 Ozafy - ozafy@borknet.org - http://www.borknet.org
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #
23
24 #
25 # Thx to:
26 # Oberjaeger, as allways :)
27 #
28
29 */
30 package borknet_services;
31 import java.util.*;
32 import borknet_services.core.Core;
33
34 /**
35 * The main class of the BorkNet Services Core.
36 * @author Ozafy - ozafy@borknet.org - http://www.borknet.org
37 * @version 1.0
38 */
39 public class Start
40 {
41 /**
42 * Program execution starts here.
43 * @param args The arguments passed to the program.
44 */
45 public static void main(String[] args)
46 {
47 try
48 {
49 // The main Bot
50 if(args[0].contains("d"))
51 {
52 Core C = new Core(true);
53 }
54 else
55 {
56 Core C = new Core(false);
57 }
58 }
59 catch(Exception e)
60 {
61 Core C = new Core(false);
62 }
63 }
64 }