mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08: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;
|
package mage.server;
|
||||||
|
|
||||||
|
import mage.cards.repository.CardScanner;
|
||||||
import mage.game.match.MatchType;
|
import mage.game.match.MatchType;
|
||||||
import mage.game.tournament.TournamentType;
|
import mage.game.tournament.TournamentType;
|
||||||
import mage.interfaces.MageServer;
|
import mage.interfaces.MageServer;
|
||||||
|
|
@ -83,6 +84,7 @@ public class Main {
|
||||||
|
|
||||||
logger.info("Starting MAGE server version " + version);
|
logger.info("Starting MAGE server version " + version);
|
||||||
logger.info("Logging level: " + logger.getEffectiveLevel());
|
logger.info("Logging level: " + logger.getEffectiveLevel());
|
||||||
|
CardScanner.scan();
|
||||||
deleteSavedGames();
|
deleteSavedGames();
|
||||||
ConfigSettings config = ConfigSettings.getInstance();
|
ConfigSettings config = ConfigSettings.getInstance();
|
||||||
for (GamePlugin plugin: config.getGameTypes()) {
|
for (GamePlugin plugin: config.getGameTypes()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue