Fix build

This commit is contained in:
Luck 2017-09-04 22:32:02 +01:00
parent 6bc7f1fca2
commit 479bd91b74
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -45,6 +45,7 @@ import me.lucko.luckperms.common.commands.sender.Sender;
import me.lucko.luckperms.common.config.ConfigKeys; import me.lucko.luckperms.common.config.ConfigKeys;
import me.lucko.luckperms.common.config.LuckPermsConfiguration; import me.lucko.luckperms.common.config.LuckPermsConfiguration;
import me.lucko.luckperms.common.constants.CommandPermission; import me.lucko.luckperms.common.constants.CommandPermission;
import me.lucko.luckperms.common.constants.Constants;
import me.lucko.luckperms.common.contexts.ContextManager; import me.lucko.luckperms.common.contexts.ContextManager;
import me.lucko.luckperms.common.contexts.LuckPermsCalculator; import me.lucko.luckperms.common.contexts.LuckPermsCalculator;
import me.lucko.luckperms.common.dependencies.DependencyManager; import me.lucko.luckperms.common.dependencies.DependencyManager;
@ -434,7 +435,28 @@ public class LPSpongePlugin implements LuckPermsPlugin {
@Override @Override
public Sender getConsoleSender() { public Sender getConsoleSender() {
if (!game.isServerAvailable()) { if (!game.isServerAvailable()) {
return new ImporterSender(this, s -> logger.info(s)); return new ImporterSender(this) {
@Override
public String getName() {
return Constants.CONSOLE_NAME;
}
@Override
public UUID getUuid() {
return Constants.CONSOLE_UUID;
}
@Override
public boolean isImport() {
return false;
}
@Override
protected void consumeMessage(String s) {
logger.info(s);
}
};
} }
return getSenderFactory().wrap(game.getServer().getConsole()); return getSenderFactory().wrap(game.getServer().getConsole());
} }