From 03e4c2165e1a6aae1de339a915195928cb6363c2 Mon Sep 17 00:00:00 2001 From: BenCodez Date: Sun, 28 Apr 2024 14:50:10 -0400 Subject: [PATCH] Fix command casing --- VotingPlugin/Resources/plugin.yml | 8 ++++---- .../servicesites/ServiceSiteHandler.java | 13 +++++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/VotingPlugin/Resources/plugin.yml b/VotingPlugin/Resources/plugin.yml index 80b236453..fe7ca6093 100644 --- a/VotingPlugin/Resources/plugin.yml +++ b/VotingPlugin/Resources/plugin.yml @@ -146,15 +146,15 @@ commands: aliases: avconvertfromdata adminvoteonverttodata: description: Command Alias - aliases: avConvertFromData + aliases: avconverttodata adminvotecleartotal: description: Command Alias adminvotebackgroundupdate: description: Command Alias - aliases: avBackgroundUpdate + aliases: avbackgroundupdate adminvoteclearcache: description: Command Alias - aliases: avClearCache + aliases: avclearcache adminvoteservicesites: description: Command Alias aliases: avservicesites @@ -172,7 +172,7 @@ commands: aliases: avpermsplayer adminvoteresyncmilestonesalreadygiven: description: Command Alias - aliases: avResyncMilestonesAlreadyGiven + aliases: avresyncmilestonesalreadygiven votesetprimaryaccount: description: Command Alias adminvoteclearofflinevotes: diff --git a/VotingPlugin/src/com/bencodez/votingplugin/servicesites/ServiceSiteHandler.java b/VotingPlugin/src/com/bencodez/votingplugin/servicesites/ServiceSiteHandler.java index 3df375011..2477e09fa 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/servicesites/ServiceSiteHandler.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/servicesites/ServiceSiteHandler.java @@ -16,6 +16,7 @@ public class ServiceSiteHandler { @Getter private HashMap serviceSites = new HashMap(); + private VotingPluginMain plugin; public String match(String service) { for (Entry entry : serviceSites.entrySet()) { @@ -36,10 +37,12 @@ public String matchReverse(String service) { } public ServiceSiteHandler(VotingPluginMain plugin) { + this.plugin = plugin; loadFromGithub(); for (Entry entry : serviceSites.entrySet()) { plugin.extraDebug(entry.getKey() + " - " + entry.getValue()); } + } public void readFromWeb(String webURL) throws IOException { @@ -64,11 +67,13 @@ public void readFromWeb(String webURL) throws IOException { } } } catch (MalformedURLException e) { - e.printStackTrace(); - throw new MalformedURLException("URL is malformed!!"); + plugin.debug(e); + // e.printStackTrace(); + // throw new MalformedURLException("URL is malformed!!"); } catch (IOException e) { - e.printStackTrace(); - throw new IOException(); + plugin.debug(e); + // e.printStackTrace(); + // throw new IOException(); } }