forked from External/mage
...
This commit is contained in:
parent
2aaa8312f4
commit
41d9cb30de
5 changed files with 20 additions and 5 deletions
|
|
@ -48,6 +48,8 @@ public class Main {
|
|||
|
||||
private static Logger logger = Logging.getLogger(Main.class.getName());
|
||||
|
||||
private final static String testModeArg = "-testMode=";
|
||||
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
|
|
@ -61,7 +63,13 @@ public class Main {
|
|||
for (Plugin plugin: config.getPlayerTypes()) {
|
||||
PlayerFactory.getInstance().addPlayerType(plugin.getName(), loadPlugin(plugin));
|
||||
}
|
||||
Server server = new ServerImpl(config.getPort(), config.getServerName());
|
||||
boolean testMode = false;
|
||||
for (String arg: args) {
|
||||
if (arg.startsWith(testModeArg)) {
|
||||
testMode = Boolean.valueOf(arg.replace(testModeArg, ""));
|
||||
}
|
||||
}
|
||||
Server server = new ServerImpl(config.getPort(), config.getServerName(), testMode);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue