mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-05 18:22:37 +01:00
Merge branch 'develop' of https://github.com/BentoBoxWorld/Level.git into develop
This commit is contained in:
commit
d9137e83ed
@ -119,7 +119,7 @@ public class IslandLevelCommand extends CompositeCommand {
|
||||
.filter(u -> !u.equals(user.getUniqueId()))
|
||||
.forEach(m -> User.getInstance(m).sendMessage(ISLAND_LEVEL_IS, LEVEL, addon.getManager().getIslandLevelString(getWorld(), playerUUID)));
|
||||
}
|
||||
} else {
|
||||
} else if (this.addon.getSettings().isLogReportToConsole()) {
|
||||
results.getReport().forEach(BentoBox.getInstance()::log);
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,11 @@ public class ConfigSettings implements ConfigObject {
|
||||
@ConfigEntry(path = "disabled-game-modes")
|
||||
private List<String> gameModes = Collections.emptyList();
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("When executing level command from console, should a report be shown?")
|
||||
@ConfigEntry(path = "log-report-to-console")
|
||||
private boolean logReportToConsole = true;
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("Number of concurrent island calculations")
|
||||
@ConfigComment("If your CPU can handle it, you can run parallel island calcs if there are more than one in the queue")
|
||||
@ -363,5 +368,21 @@ public class ConfigSettings implements ConfigObject {
|
||||
public void setCalculationTimeout(int calculationTimeout) {
|
||||
this.calculationTimeout = calculationTimeout;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return logReportToConsole
|
||||
*/
|
||||
public boolean isLogReportToConsole() {
|
||||
return logReportToConsole;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param logReportToConsole if logReportToConsole should be shown on console
|
||||
*/
|
||||
public void setLogReportToConsole(boolean logReportToConsole) {
|
||||
this.logReportToConsole = logReportToConsole;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,6 +5,9 @@
|
||||
# Level will NOT hook into these game mode addons.
|
||||
disabled-game-modes: []
|
||||
#
|
||||
# When executing level command from console, should a report be shown?
|
||||
log-report-to-console: true
|
||||
#
|
||||
# Number of concurrent island calculations
|
||||
# If your CPU can handle it, you can run parallel island calcs if there are more than one in the queue
|
||||
concurrent-island-calcs: 1
|
||||
|
Loading…
Reference in New Issue
Block a user