From ac86ac60ccdef09e16e6f10938ae54e40a33bfc4 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 8 Jun 2019 09:11:40 -0700 Subject: [PATCH] Removes death sum setting. --- .../world/bentobox/bskyblock/Settings.java | 18 ------------------ .../world/bentobox/bskyblock/SettingsTest.java | 9 --------- 2 files changed, 27 deletions(-) diff --git a/src/main/java/world/bentobox/bskyblock/Settings.java b/src/main/java/world/bentobox/bskyblock/Settings.java index 7fdff0a..1bc544d 100644 --- a/src/main/java/world/bentobox/bskyblock/Settings.java +++ b/src/main/java/world/bentobox/bskyblock/Settings.java @@ -281,9 +281,6 @@ public class Settings implements WorldSettings { @ConfigEntry(path = "island.deaths.max") private int deathsMax = 10; - @ConfigEntry(path = "island.deaths.sum-team") - private boolean deathsSumTeam = false; - @ConfigComment("When a player joins a team, reset their death count") @ConfigEntry(path = "island.deaths.team-join-reset") private boolean teamJoinDeathReset = true; @@ -666,14 +663,6 @@ public class Settings implements WorldSettings { return deathsMax; } - /** - * @return the deathsSumTeam - */ - @Override - public boolean isDeathsSumTeam() { - return deathsSumTeam; - } - /** * @return the teamJoinDeathReset */ @@ -994,13 +983,6 @@ public class Settings implements WorldSettings { this.deathsMax = deathsMax; } - /** - * @param deathsSumTeam the deathsSumTeam to set - */ - public void setDeathsSumTeam(boolean deathsSumTeam) { - this.deathsSumTeam = deathsSumTeam; - } - /** * @param teamJoinDeathReset the teamJoinDeathReset to set */ diff --git a/src/test/java/world/bentobox/bskyblock/SettingsTest.java b/src/test/java/world/bentobox/bskyblock/SettingsTest.java index 8900e08..95b2d95 100644 --- a/src/test/java/world/bentobox/bskyblock/SettingsTest.java +++ b/src/test/java/world/bentobox/bskyblock/SettingsTest.java @@ -390,15 +390,6 @@ public class SettingsTest { assertEquals(123, s.getDeathsMax()); } - /** - * Test method for {@link world.bentobox.bskyblock.Settings#setDeathsSumTeam(boolean)}. - */ - @Test - public void testSetDeathsSumTeam() { - s.setDeathsSumTeam(true); - assertTrue(s.isDeathsSumTeam()); - } - /** * Test method for {@link world.bentobox.bskyblock.Settings#setTeamJoinDeathReset(boolean)}. */