Add option to ignore vanished players from sleeping (#4200)

This commit is contained in:
Josh Roy 2021-06-06 17:05:16 -04:00 committed by GitHub
parent a4fbfbef02
commit fed26071ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View file

@ -1101,6 +1101,11 @@ public class Settings implements net.ess3.api.ISettings {
return config.getBoolean("sleep-ignores-afk-players", true);
}
@Override
public boolean sleepIgnoresVanishedPlayers() {
return config.getBoolean("sleep-ignores-vanished-player", true);
}
public String _getAfkListName() {
return FormatUtil.replaceFormat(config.getString("afk-list-name", "none"));
}