mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08:00
Disabled update system because it doesn't work on Bungee yet.
This commit is contained in:
parent
09a2737053
commit
2c7b514719
@ -4,7 +4,6 @@ import com.djrapitops.plan.PlanBungee;
|
||||
import com.djrapitops.plan.command.commands.*;
|
||||
import com.djrapitops.plan.command.commands.manage.ManageConDebugCommand;
|
||||
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.Msg;
|
||||
import com.djrapitops.plugin.command.CommandNode;
|
||||
@ -50,7 +49,7 @@ public class PlanBungeeCommand extends TreeCmdNode {
|
||||
new BungeeSetupToggleCommand(),
|
||||
new ReloadCommand(plugin),
|
||||
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
|
||||
(Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
||||
// (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public class PlanCommand extends TreeCmdNode {
|
||||
new ManageCommand(plugin, this),
|
||||
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
|
||||
(Settings.DEV_MODE.isTrue() ? new DevCommand() : null),
|
||||
(Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
||||
// (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ public class UpdateCommand extends CommandNode {
|
||||
} catch (BadRequestException e) {
|
||||
sender.sendMessage("§c" + server.getName() + " has Allow-Update set to false, aborting update.");
|
||||
return false;
|
||||
} catch (ForbiddenException | GatewayException | InternalErrorException e) {
|
||||
} catch (ForbiddenException | GatewayException | InternalErrorException | NoServersException e) {
|
||||
sender.sendMessage("§c" + server.getName() + ": Odd Exception: " + e.getClass().getSimpleName());
|
||||
return false;
|
||||
} catch (UnauthorizedServerException e) {
|
||||
|
@ -126,8 +126,8 @@ public abstract class ConnectionSystem implements SubSystem {
|
||||
putRequest(requests, SendDBSettingsRequest.createHandler());
|
||||
putRequest(requests, CheckConnectionRequest.createHandler());
|
||||
|
||||
putRequest(requests, UpdateRequest.createHandler());
|
||||
putRequest(requests, UpdateCancelRequest.createHandler());
|
||||
// putRequest(requests, UpdateRequest.createHandler());
|
||||
// putRequest(requests, UpdateCancelRequest.createHandler());
|
||||
return requests;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user