Updated configuration file layout. Added new post-protection features (configurable): water protection, lava protection and fire protection. Changed default configuration values.

This commit is contained in:
2021-09-28 16:58:32 +01:00
parent b91f7d5e87
commit b71a1b5b0b
4 changed files with 68 additions and 26 deletions

View File

@ -39,7 +39,7 @@ public class ProtectedPlayers {
protected_players.remove(protected_player);
ServerPlayer player = ServerLifecycleHooks.getCurrentServer().getPlayerList().getPlayer(player_uuid);
if (player == null || !Config.GRACE_ENABLED.get()) { return; }
if (player == null || !Config.POST_GRACE_ENABLED.get()) { return; }
player.sendMessage(new TextComponent("Grace Period over!"), player_uuid);
}