From b6ab172bcd77a7429f78af3b0814aa2d1da6d720 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Mon, 7 Aug 2023 19:29:33 -0400 Subject: [PATCH] Added regenInventoryClear Added the config options clearInventoryOnRegen & clearEnderChestOnRegen to allow servers to clear player inventories when regenerating islands. --- .../iridium/iridiumskyblock/commands/RegenCommand.java | 8 ++++++++ .../iridium/iridiumskyblock/configs/Configuration.java | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/com/iridium/iridiumskyblock/commands/RegenCommand.java b/src/main/java/com/iridium/iridiumskyblock/commands/RegenCommand.java index 4ffd0c627..c78950384 100644 --- a/src/main/java/com/iridium/iridiumskyblock/commands/RegenCommand.java +++ b/src/main/java/com/iridium/iridiumskyblock/commands/RegenCommand.java @@ -51,6 +51,14 @@ public void execute(User user, Island island, String[] args, IridiumTeams Bukkit.getScheduler().runTask(IridiumSkyblock.getInstance(), () -> { if (IridiumSkyblock.getInstance().getTeamManager().teleport(player, island.getHome(), island)) { player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().teleportingHome diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java b/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java index d1d82d126..9ec40accf 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java @@ -49,6 +49,8 @@ public Configuration() { public boolean obsidianBucket = true; public boolean removeIslandBlocksOnDelete = false; + public boolean clearInventoryOnRegen = false; + public boolean clearEnderChestOnRegen = false; public int distance = 151; public int netherUnlockLevel = 10; public int pasterDelayInTick = 1;