mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
Add afk-list-name config property for changing the player list name of AFK players.
This commit is contained in:
parent
c6d2746959
commit
bbf657e251
4 changed files with 36 additions and 0 deletions
|
@ -495,6 +495,8 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
cancelAfkOnInteract = _cancelAfkOnInteract();
|
||||
cancelAfkOnMove = _cancelAfkOnMove() && cancelAfkOnInteract;
|
||||
getFreezeAfkPlayers = _getFreezeAfkPlayers();
|
||||
afkListName = _getAfkListName();
|
||||
isAfkListName = !afkListName.equalsIgnoreCase("none");
|
||||
itemSpawnBl = _getItemSpawnBlacklist();
|
||||
loginAttackDelay = _getLoginAttackDelay();
|
||||
signUsePerSecond = _getSignUsePerSecond();
|
||||
|
@ -862,6 +864,23 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
return config.getBoolean("cancel-afk-on-interact", true);
|
||||
}
|
||||
|
||||
private String afkListName;
|
||||
private boolean isAfkListName;
|
||||
|
||||
public String _getAfkListName() {
|
||||
return FormatUtil.replaceFormat(config.getString("afk-list-name", "none"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAfkListName() {
|
||||
return isAfkListName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAfkListName() {
|
||||
return afkListName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areDeathMessagesEnabled() {
|
||||
return config.getBoolean("death-messages", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue