Update dependencies
- Updated checkstyle - Fixed new checkstyle issues - Added staged feature: reloading server.properties partially
This commit is contained in:
parent
d52e834f11
commit
466e2659e8
51 changed files with 228 additions and 93 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package net.frankheijden.serverutils.common.tasks;
|
||||
|
||||
import com.sun.nio.file.SensitivityWatchEventModifier;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.ClosedWatchServiceException;
|
||||
|
|
@ -11,7 +10,6 @@ import java.nio.file.WatchEvent;
|
|||
import java.nio.file.WatchKey;
|
||||
import java.nio.file.WatchService;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import net.frankheijden.serverutils.common.ServerUtilsApp;
|
||||
import net.frankheijden.serverutils.common.entities.AbstractTask;
|
||||
import net.frankheijden.serverutils.common.entities.ServerCommandSender;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package net.frankheijden.serverutils.common.tasks;
|
|||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
|
@ -11,7 +10,6 @@ import java.net.ConnectException;
|
|||
import java.net.SocketTimeoutException;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import net.frankheijden.serverutils.common.ServerUtilsApp;
|
||||
import net.frankheijden.serverutils.common.config.Config;
|
||||
import net.frankheijden.serverutils.common.config.Messenger;
|
||||
|
|
@ -205,7 +203,7 @@ public class UpdateCheckerTask implements Runnable {
|
|||
plugin.getPluginManager().enablePlugin(updater);
|
||||
|
||||
plugin.getPluginManager().disablePlugin(ServerUtilsApp.getPlatformPlugin());
|
||||
plugin.getPluginManager().unloadPlugin((Object)ServerUtilsApp.getPlatformPlugin()).tryClose();
|
||||
plugin.getPluginManager().unloadPlugin((Object) ServerUtilsApp.getPlatformPlugin()).tryClose();
|
||||
updater.update(pluginFile);
|
||||
updaterFile.delete();
|
||||
} else {
|
||||
|
|
@ -216,7 +214,7 @@ public class UpdateCheckerTask implements Runnable {
|
|||
|
||||
private void broadcastDownloadStatus(String githubVersion, boolean isError) {
|
||||
final String path = "serverutils.update." + (isError ? "failed" : "success");
|
||||
String message = Messenger.getMessage(path,"%new%", githubVersion);
|
||||
String message = Messenger.getMessage(path, "%new%", githubVersion);
|
||||
plugin.getChatProvider().broadcast("serverutils.notification.update", message);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue