@@ -0,0 +1,1671 @@
+package me.CryCore.RestartSystem;%0A%0Aimport java.util.Date;%0A%0Aimport org.bukkit.Bukkit;%0Aimport org.bukkit.configuration.file.FileConfiguration;%0Aimport org.bukkit.configuration.file.FileConfigurationOptions;%0Aimport org.bukkit.plugin.java.JavaPlugin;%0Aimport org.bukkit.scheduler.BukkitScheduler;%0A%0A@SuppressWarnings(%22unused%22)%0Apublic class Main%0A  extends JavaPlugin%0A%7B%0A  public void onEnable()%0A  %7B%0A    loadConfig();%0A    startTimer();%0A  %7D%0A  %0A  private void startTimer()%0A  %7B%0A    Bukkit.getScheduler().runTaskTimer(this, new Runnable()%0A    %7B%0A      @SuppressWarnings(%22deprecation%22)%0A%09public void run()%0A      %7B%0A        Date d = new Date();%0A        String time = Main.this.getConfig().getString(%22time%22);%0A        if (time.contains(%22:%22))%0A        %7B%0A          int hour = Integer.parseInt(time.split(%22:%22)%5B0%5D);%0A          int minute = Integer.parseInt(time.split(%22:%22)%5B1%5D);%0A          if ((d.getHours() == hour) && (d.getMinutes() == minute)) %7B%0A            if (Main.this.getConfig().getString(%22type%22).equalsIgnoreCase(%22stop%22)) %7B%0A              Bukkit.shutdown();%0A            %7D else %7B%0A              Bukkit.reload();%0A            %7D%0A          %7D%0A        %7D%0A        else%0A        %7B%0A          Main.this.getConfig().set(%22time%22, %2219:30%22);%0A        %7D%0A      %7D%0A    %7D, 600L, 600L);%0A  %7D%0A  %0A  private void loadConfig()%0A  %7B%0A    getConfig().options().header(%22Time%5Cnhour:minute%5Cn(24h)%5Cn%5CnTypes:%5Cnstop -%3E Stop the server%5Cnreload -%3E reload the server%22);%0A    check(%22time%22, %2219:30%22);%0A    check(%22type%22, %22stop%22);%0A  %7D%0A  %0A  private boolean check(String path, Object value)%0A  %7B%0A    if (!getConfig().contains(path))%0A    %7B%0A      getConfig().set(path, value);%0A      saveConfig();%0A      return false;%0A    %7D%0A    return true;%0A  %7D%0A%7D%0A

Create Main.java