From a56513d85180c699b566783d7e1ce1f12d641aa4 Mon Sep 17 00:00:00 2001 From: Myles Date: Sat, 10 Dec 2022 01:23:40 -0600 Subject: 1AM COMMIT LETS GOOOO - fixed about 20 bugs, glitches, exploits, you name it--Jacob can break anything (not even joking, did my first *real* playtest; it was...valuable...we'll leave it at that) - added some sort of block balancing (want to improve on it later maybe?) - change the prefix back to lowercase because we're emo or something (COMMONALITY SHUT UP) - game env is now more controlled (thanks Jacob) - can I go to bed now --- src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java') diff --git a/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java b/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java index 74eaf0d..695c248 100644 --- a/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java +++ b/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java @@ -52,6 +52,7 @@ public class SetWorldConfig implements CommandExecutor { TumbleManager.getPlugin().saveConfig(); // Set the gamerule of doImmediateRespawn in the gameWorld for later Bukkit.getWorld(world).setGameRule(GameRule.DO_IMMEDIATE_RESPAWN, true); + Bukkit.getWorld(world).setGameRule(GameRule.KEEP_INVENTORY, true); sender.sendMessage(ChatColor.GREEN + "Game world successfully linked: " + ChatColor.GRAY + world); sender.sendMessage(ChatColor.GREEN + "Please restart your server for the changes to take effect; " + ChatColor.RED + "reloading the plugin is insufficient!"); } -- cgit v1.2.3