Search in sources :

Example 1 with QueryHandler

use of cn.nukkit.network.query.QueryHandler in project Nukkit by Nukkit.

the class Server method start.

public void start() {
    if (this.getPropertyBoolean("enable-query", true)) {
        this.queryHandler = new QueryHandler();
    }
    for (BanEntry entry : this.getIPBans().getEntires().values()) {
        this.network.blockAddress(entry.getName(), -1);
    }
    // todo send usage setting
    this.tickCounter = 0;
    this.logger.info(this.getLanguage().translateString("nukkit.server.defaultGameMode", getGamemodeString(this.getGamemode())));
    this.logger.info(this.getLanguage().translateString("nukkit.server.startFinished", String.valueOf((double) (System.currentTimeMillis() - Nukkit.START_TIME) / 1000)));
    this.tickProcessor();
    this.forceShutdown();
}
Also used : QueryHandler(cn.nukkit.network.query.QueryHandler) BanEntry(cn.nukkit.permission.BanEntry)

Aggregations

QueryHandler (cn.nukkit.network.query.QueryHandler)1 BanEntry (cn.nukkit.permission.BanEntry)1