1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-25 13:49:12 +02:00

Removing automatic updates

It's a bad idea to automatically overwrite files, without asking the player first.

This would be triggered by the selfupdate after the reload.
This commit is contained in:
snowleo
2011-10-26 22:17:27 +02:00
parent 652ff80deb
commit 0be5233b89
3 changed files with 0 additions and 78 deletions

View File

@@ -1,12 +1,8 @@
package com.earth2me.essentials.update;
import com.earth2me.essentials.update.states.Changelog;
import com.earth2me.essentials.update.states.EssentialsChat;
import com.earth2me.essentials.update.states.InstallationFinishedEvent;
import com.earth2me.essentials.update.states.StateMachine;
import com.earth2me.essentials.update.states.UpdateOrInstallation;
import com.earth2me.essentials.update.tasks.SelfUpdate;
import java.util.List;
import java.util.logging.Level;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
@@ -139,19 +135,6 @@ public class UpdateProcess extends PlayerListener
}
}
public void doAutomaticUpdate()
{
final VersionInfo info = updateCheck.getNewVersionInfo();
final List<String> changelog = info.getChangelog();
Bukkit.getLogger().log(Level.INFO, "Essentials changelog {0}", updateCheck.getNewVersion().toString());
for (String line : changelog)
{
Bukkit.getLogger().log(Level.INFO, " - {0}", line);
}
final UpdatesDownloader downloader = new UpdatesDownloader(plugin, info);
downloader.start();
}
public void onCommand(final CommandSender sender)
{
if (sender instanceof Player && sender.hasPermission("essentials.update"))