gamerules

This commit is contained in:
Tyler Murphy 2021-08-13 22:32:37 -04:00
parent f9bc9cdeb1
commit 4503bbe022
2 changed files with 5 additions and 0 deletions

View file

@ -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();

View file

@ -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<String,HashMap<String,Integer>>();
for(Player player : playerList.values()) {
resetPlayerData(player.getName(),true);