No longer uses any of the pluginupdater tasks from the old updating

system.
This commit is contained in:
sigonasr2 2016-12-20 02:04:40 -06:00
parent 36a42076e8
commit c94ae9836f
3 changed files with 7 additions and 6 deletions

Binary file not shown.

View File

@ -14,6 +14,7 @@ import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
@Deprecated
public class AutoUpdatePlugin implements Runnable { public class AutoUpdatePlugin implements Runnable {
List<Plugin> plugins; List<Plugin> plugins;
boolean restarting=false; boolean restarting=false;
@ -79,7 +80,7 @@ public class AutoUpdatePlugin implements Runnable {
Bukkit.broadcastMessage("The server has detected a new version of "+ChatColor.YELLOW+plugins.get(ii).name+"."+ChatColor.GRAY+ChatColor.ITALIC+"If all players leave, the update will occur immediately."); Bukkit.broadcastMessage("The server has detected a new version of "+ChatColor.YELLOW+plugins.get(ii).name+"."+ChatColor.GRAY+ChatColor.ITALIC+"If all players leave, the update will occur immediately.");
} }
if (restarting) { if (restarting) {
TwosideKeeper.updateServer(); //TwosideKeeper.updateServer();
} }
}},1); }},1);
TwosideKeeper.log("New hash: "+md5, 2); TwosideKeeper.log("New hash: "+md5, 2);

View File

@ -408,7 +408,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
public static MysteriousEssenceLogger EssenceLogger; //The logger for Essences. public static MysteriousEssenceLogger EssenceLogger; //The logger for Essences.
public static BowModeLogger BowLogger; //The logger for Bow Modes. public static BowModeLogger BowLogger; //The logger for Bow Modes.
public static LootLogger Loot_Logger; //The logger for Loot. public static LootLogger Loot_Logger; //The logger for Loot.
public static AutoUpdatePlugin pluginupdater; //public static AutoUpdatePlugin pluginupdater;
public static boolean restarting_server=false; public static boolean restarting_server=false;
public static List<String> log_messages=new ArrayList<String>(); public static List<String> log_messages=new ArrayList<String>();
public static List<TemporaryLava> temporary_lava_list = new ArrayList<TemporaryLava>(); public static List<TemporaryLava> temporary_lava_list = new ArrayList<TemporaryLava>();
@ -1536,9 +1536,9 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
} }
} }
if (SERVER_TYPE==ServerType.MAIN && !restarting_server) { /*if (SERVER_TYPE==ServerType.MAIN && !restarting_server) {
Bukkit.getScheduler().runTaskAsynchronously(this, pluginupdater); Bukkit.getScheduler().runTaskAsynchronously(this, pluginupdater);
} }*/
AnnounceDealOfTheDay(ev.getPlayer()); AnnounceDealOfTheDay(ev.getPlayer());
playerdata.put(ev.getPlayer().getUniqueId(), new PlayerStructure(ev.getPlayer(),getServerTickTime())); playerdata.put(ev.getPlayer().getUniqueId(), new PlayerStructure(ev.getPlayer(),getServerTickTime()));
@ -7781,7 +7781,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
} }
} }
} }
/*
public static void updateServer() { public static void updateServer() {
if (Bukkit.getOnlinePlayers().size()!=0) { if (Bukkit.getOnlinePlayers().size()!=0) {
Bukkit.getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugin("TwosideKeeper"), new Runnable() { Bukkit.getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugin("TwosideKeeper"), new Runnable() {
@ -7814,7 +7814,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
} }
},20*180*((Bukkit.getOnlinePlayers().size()==0)?0:1)+1); },20*180*((Bukkit.getOnlinePlayers().size()==0)?0:1)+1);
} }*/
public void showPlayerStats(Player p) { public void showPlayerStats(Player p) {
showPlayerStats(p,p,""); showPlayerStats(p,p,"");