mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[CardRepository] Added card scanning on server startup
This commit is contained in:
parent
08815ffb88
commit
cf93d74206
1 changed files with 2 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue