mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-10-27 22:10:30 +01: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.*;
|
||||||
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)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user