From 12c2885b75bb4eda658a7685b3a6b6e63e0fc4e4 Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 7 Jun 2019 22:26:35 -0700 Subject: [PATCH] Clarifies kicked-keep-inventory config setting. --- src/main/java/world/bentobox/caveblock/Settings.java | 6 ++++-- src/main/resources/config.yml | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/world/bentobox/caveblock/Settings.java b/src/main/java/world/bentobox/caveblock/Settings.java index 6b89731..1f0e831 100644 --- a/src/main/java/world/bentobox/caveblock/Settings.java +++ b/src/main/java/world/bentobox/caveblock/Settings.java @@ -402,6 +402,7 @@ public class Settings implements WorldSettings * This method returns the leaversLoseReset object. * @return the leaversLoseReset object. */ + @Override public boolean isLeaversLoseReset() { return leaversLoseReset; @@ -412,6 +413,7 @@ public class Settings implements WorldSettings * This method returns the kickedKeepInventory object. * @return the kickedKeepInventory object. */ + @Override public boolean isKickedKeepInventory() { return kickedKeepInventory; @@ -554,6 +556,7 @@ public class Settings implements WorldSettings * This method returns the deathsSumTeam object. * @return the deathsSumTeam object. */ + @Override public boolean isDeathsSumTeam() { return deathsSumTeam; @@ -1789,8 +1792,7 @@ public class Settings implements WorldSettings private boolean leaversLoseReset = false; @ConfigComment("Allow kicked players to keep their inventory.") - @ConfigComment("If false, kicked player's inventory will be thrown at the island leader if the") - @ConfigComment("kicked player is online and in the island world.") + @ConfigComment("Overrides the on-leave inventory reset for kicked players.") @ConfigEntry(path = "island.reset.kicked-keep-inventory") private boolean kickedKeepInventory = false; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 70457fd..7fc5aee 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -275,8 +275,7 @@ island: # Leave this true to avoid players exploiting free islands leavers-lose-reset: false # Allow kicked players to keep their inventory. - # If false, kicked player's inventory will be thrown at the island leader if the - # kicked player is online and in the island world. + # Overrides the on-leave inventory reset for kicked players. kicked-keep-inventory: false on-join: # What the plugin should reset when the player joins or creates an island