[TASK] Apply requested changes

This commit is contained in:
Alexander Bielen
2018-12-04 21:21:52 +01:00
parent 9caecc3478
commit b6a091cb07
2 changed files with 4 additions and 4 deletions
@@ -24,6 +24,6 @@ public class Configuration extends org.parabot.api.Configuration {
public static final Version BOT_VERSION = ProjectProperties.getProjectVersion();
public static final String COMMUNITY = "https://www.parabot.org/community/";
public static final String REGISTRATION_PAGE = COMMUNITY + "register/";
public static final String COMMUNITY_PAGE = "https://www.parabot.org/community/";
public static final String REGISTRATION_PAGE = COMMUNITY_PAGE + "register/";
}
@@ -95,11 +95,11 @@ public abstract class ServerProvider implements Opcodes {
if(!crashed) {
Injectable inj = injectables[index];
int resp = UILog.alert("Outdated client", "This server currently has outdated hooks, please report it to a member of the Parabot staff/Dev Team.\r\n\r\n" +
int resp = UILog.alert("Outdated client", "This server currently has outdated hooks, please report it to a member of the Parabot staff.\r\n\r\n" +
"Broken hook:\r\n"+inj, new Object[]{"Close", "Report here..."}, JOptionPane.ERROR_MESSAGE);
if(resp == 1) {
URI uri = URI.create(Configuration.COMMUNITY + "forum/135-reports/");
URI uri = URI.create(Configuration.COMMUNITY_PAGE + "forum/135-reports/");
try {
Desktop.getDesktop().browse(uri);
} catch (IOException ignore) {}