[CardRepository] Added card scanning on server startup

This commit is contained in:
North 2012-10-22 23:49:26 +03:00
parent 08815ffb88
commit cf93d74206

View file

@ -28,6 +28,7 @@
package mage.server;
import mage.cards.repository.CardScanner;
import mage.game.match.MatchType;
import mage.game.tournament.TournamentType;
import mage.interfaces.MageServer;
@ -83,6 +84,7 @@ public class Main {
logger.info("Starting MAGE server version " + version);
logger.info("Logging level: " + logger.getEffectiveLevel());
CardScanner.scan();
deleteSavedGames();
ConfigSettings config = ConfigSettings.getInstance();
for (GamePlugin plugin: config.getGameTypes()) {