Skip to content

Commit

Permalink
Change config.yml getter to match what the key actually is
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberedCake committed Mar 28, 2023
1 parent c530473 commit 852a48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/cybercake/bungee/commands/VersionCMD.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void execute(CommandSender sender, String[] args) {
String pluginName = args[0];
Plugin exactPlugin = ProxyServer.getInstance().getPluginManager().getPlugin(pluginName);
if(exactPlugin != null) {
if(Plugins.config.getBoolean("useAlternatePluginVersionMessage")) showAlternatePluginVersion(sender, exactPlugin);
if(Plugins.config.getBoolean("useAlternatePluginSpecificVersionMessage")) showAlternatePluginVersion(sender, exactPlugin);
else showPlugin(sender, exactPlugin);
return;
}
Expand All @@ -95,7 +95,7 @@ public void execute(CommandSender sender, String[] args) {
pluginName = pluginName.toLowerCase(Locale.ROOT);
for(Plugin plugin : ProxyServer.getInstance().getPluginManager().getPlugins()) {
if(plugin.getDescription().getName().toLowerCase(Locale.ROOT).contains(pluginName)) {
if(Plugins.config.getBoolean("useAlternatePluginVersionMessage")) showAlternatePluginVersion(sender, plugin);
if(Plugins.config.getBoolean("useAlternatePluginSpecificVersionMessage")) showAlternatePluginVersion(sender, plugin);
else showPlugin(sender, plugin);
found = true;
}
Expand Down

0 comments on commit 852a48a

Please sign in to comment.