Disabled update system because it doesn't work on Bungee yet.

This commit is contained in:
Rsl1122 2018-05-21 10:34:13 +03:00
parent 09a2737053
commit 2c7b514719
4 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,6 @@ import com.djrapitops.plan.PlanBungee;
import com.djrapitops.plan.command.commands.*; import com.djrapitops.plan.command.commands.*;
import com.djrapitops.plan.command.commands.manage.ManageConDebugCommand; import com.djrapitops.plan.command.commands.manage.ManageConDebugCommand;
import com.djrapitops.plan.system.settings.Permissions; import com.djrapitops.plan.system.settings.Permissions;
import com.djrapitops.plan.system.settings.Settings;
import com.djrapitops.plan.system.settings.locale.Locale; import com.djrapitops.plan.system.settings.locale.Locale;
import com.djrapitops.plan.system.settings.locale.Msg; import com.djrapitops.plan.system.settings.locale.Msg;
import com.djrapitops.plugin.command.CommandNode; import com.djrapitops.plugin.command.CommandNode;
@ -50,7 +49,7 @@ public class PlanBungeeCommand extends TreeCmdNode {
new BungeeSetupToggleCommand(), new BungeeSetupToggleCommand(),
new ReloadCommand(plugin), new ReloadCommand(plugin),
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()), new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
(Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null) // (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
} }
); );
} }

View File

@ -48,7 +48,7 @@ public class PlanCommand extends TreeCmdNode {
new ManageCommand(plugin, this), new ManageCommand(plugin, this),
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()), new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
(Settings.DEV_MODE.isTrue() ? new DevCommand() : null), (Settings.DEV_MODE.isTrue() ? new DevCommand() : null),
(Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null) // (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
} }
); );
} }

View File

@ -179,7 +179,7 @@ public class UpdateCommand extends CommandNode {
} catch (BadRequestException e) { } catch (BadRequestException e) {
sender.sendMessage("§c" + server.getName() + " has Allow-Update set to false, aborting update."); sender.sendMessage("§c" + server.getName() + " has Allow-Update set to false, aborting update.");
return false; return false;
} catch (ForbiddenException | GatewayException | InternalErrorException e) { } catch (ForbiddenException | GatewayException | InternalErrorException | NoServersException e) {
sender.sendMessage("§c" + server.getName() + ": Odd Exception: " + e.getClass().getSimpleName()); sender.sendMessage("§c" + server.getName() + ": Odd Exception: " + e.getClass().getSimpleName());
return false; return false;
} catch (UnauthorizedServerException e) { } catch (UnauthorizedServerException e) {

View File

@ -126,8 +126,8 @@ public abstract class ConnectionSystem implements SubSystem {
putRequest(requests, SendDBSettingsRequest.createHandler()); putRequest(requests, SendDBSettingsRequest.createHandler());
putRequest(requests, CheckConnectionRequest.createHandler()); putRequest(requests, CheckConnectionRequest.createHandler());
putRequest(requests, UpdateRequest.createHandler()); // putRequest(requests, UpdateRequest.createHandler());
putRequest(requests, UpdateCancelRequest.createHandler()); // putRequest(requests, UpdateCancelRequest.createHandler());
return requests; return requests;
} }