Skip to content

Commit

Permalink
Fix command casing
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Apr 28, 2024
1 parent 45d6171 commit 03e4c21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions VotingPlugin/Resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -172,7 +172,7 @@ commands:
aliases: avpermsplayer
adminvoteresyncmilestonesalreadygiven:
description: Command Alias
aliases: avResyncMilestonesAlreadyGiven
aliases: avresyncmilestonesalreadygiven
votesetprimaryaccount:
description: Command Alias
adminvoteclearofflinevotes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
public class ServiceSiteHandler {
@Getter
private HashMap<String, String> serviceSites = new HashMap<String, String>();
private VotingPluginMain plugin;

public String match(String service) {
for (Entry<String, String> entry : serviceSites.entrySet()) {
Expand All @@ -36,10 +37,12 @@ public String matchReverse(String service) {
}

public ServiceSiteHandler(VotingPluginMain plugin) {
this.plugin = plugin;
loadFromGithub();
for (Entry<String, String> entry : serviceSites.entrySet()) {
plugin.extraDebug(entry.getKey() + " - " + entry.getValue());
}

}

public void readFromWeb(String webURL) throws IOException {
Expand All @@ -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();
}

}
Expand Down

0 comments on commit 03e4c21

Please sign in to comment.