Add startup warning about this being a testing version, update UpdateChecker coordinates, change plugin.yml name to avoid issues with other plugins

This commit is contained in:
Vankka 2023-05-19 20:17:00 +03:00
parent 2d4252ed6f
commit e5783e7b05
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
3 changed files with 15 additions and 5 deletions

View File

@ -1,4 +1,4 @@
name: DiscordSRV name: DiscordSRV-Ascension
main: com.discordsrv.bukkit.loader.DiscordSRVBukkitLoader main: com.discordsrv.bukkit.loader.DiscordSRVBukkitLoader
version: @VERSION@ version: @VERSION@
description: "" description: ""

View File

@ -175,6 +175,16 @@ public abstract class AbstractDiscordSRV<B extends IBootstrap, C extends MainCon
this.updateChecker = new UpdateChecker(this); this.updateChecker = new UpdateChecker(this);
readManifest(); readManifest();
///////////////////////////////////////////////////////////////
logger.warning("");
logger.warning("+-----------------------------------------+");
logger.warning("This is a testing version of DiscordSRV");
logger.warning("Limited or no support will be provided");
logger.warning("EVERYTHING is subject to change.");
logger.warning("+-----------------------------------------+");
logger.warning("");
///////////////////////////////////////////////////////////////
Dispatcher dispatcher = new Dispatcher(); Dispatcher dispatcher = new Dispatcher();
dispatcher.setMaxRequests(20); // Set maximum amount of requests at a time (to something more reasonable than 64) dispatcher.setMaxRequests(20); // Set maximum amount of requests at a time (to something more reasonable than 64)
dispatcher.setMaxRequestsPerHost(16); // Most requests are to discord.com dispatcher.setMaxRequestsPerHost(16); // Most requests are to discord.com

View File

@ -45,12 +45,12 @@ import java.util.List;
public class UpdateChecker { public class UpdateChecker {
private static final String USER_DOWNLOAD_URL = "https://discordsrv.com/download"; private static final String USER_DOWNLOAD_URL = "https://discordsrv.com/download";
private static final String GITHUB_REPOSITORY = "DiscordSRV/DiscordSRV"; private static final String GITHUB_REPOSITORY = "DiscordSRV/Ascension";
private static final String GITHUB_DEV_BRANCH = "master"; private static final String GITHUB_DEV_BRANCH = "main";
private static final String DOWNLOAD_SERVICE_HOST = "https://download.discordsrv.com"; private static final String DOWNLOAD_SERVICE_HOST = "https://download.discordsrv.com";
private static final String DOWNLOAD_SERVICE_SNAPSHOT_CHANNEL = "snapshot"; private static final String DOWNLOAD_SERVICE_SNAPSHOT_CHANNEL = "ascension-snapshot";
private static final String DOWNLOAD_SERVICE_RELEASE_CHANNEL = "release"; private static final String DOWNLOAD_SERVICE_RELEASE_CHANNEL = null;
private static final String GITHUB_API_HOST = "https://api.github.com"; private static final String GITHUB_API_HOST = "https://api.github.com";