From 4503bbe022f19b6a308a51ea7c9807f00e00d5b6 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Fri, 13 Aug 2021 22:32:37 -0400 Subject: [PATCH] gamerules --- src/main/java/net/tylermurphy/hideAndSeek/Main.java | 1 + src/main/java/net/tylermurphy/hideAndSeek/commands/Start.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/Main.java b/src/main/java/net/tylermurphy/hideAndSeek/Main.java index 2ce717b..615a813 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/Main.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/Main.java @@ -49,6 +49,7 @@ public class Main extends JavaPlugin implements Listener { Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule sendCommandFeedback false"); Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule doImmediateRespawn true"); Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule logAdminCommands false"); + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule naturalRegeneration false"); // Register Commands CommandManager.registerCommands(); diff --git a/src/main/java/net/tylermurphy/hideAndSeek/commands/Start.java b/src/main/java/net/tylermurphy/hideAndSeek/commands/Start.java index 1a290c5..6d8d7dd 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/commands/Start.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/commands/Start.java @@ -37,6 +37,10 @@ public class Start implements ICommand { sender.sendMessage(errorPrefix + "No Seekers were found"); return; } + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule sendCommandFeedback false"); + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule doImmediateRespawn true"); + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule logAdminCommands false"); + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "gamerule naturalRegeneration false"); playerData = new HashMap>(); for(Player player : playerList.values()) { resetPlayerData(player.getName(),true);