Fixed HelpProvider class
This commit is contained in:
parent
690c7d9532
commit
aff503c11c
@ -1,7 +1,7 @@
|
|||||||
package fr.xephi.authme.command.help;
|
package fr.xephi.authme.command.help;
|
||||||
|
|
||||||
import com.timvisee.dungeonmaze.Core;
|
import fr.xephi.authme.AuthMe;
|
||||||
import com.timvisee.dungeonmaze.command.*;
|
import fr.xephi.authme.command.*;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -33,9 +33,9 @@ public class HelpProvider {
|
|||||||
*/
|
*/
|
||||||
public static void showHelp(CommandSender sender, CommandParts reference, CommandParts helpQuery, boolean showCommand, boolean showDescription, boolean showArguments, boolean showPermissions, boolean showAlternatives, boolean showCommands) {
|
public static void showHelp(CommandSender sender, CommandParts reference, CommandParts helpQuery, boolean showCommand, boolean showDescription, boolean showArguments, boolean showPermissions, boolean showAlternatives, boolean showCommands) {
|
||||||
// Find the command for this help query, one with and one without a prefixed base command
|
// Find the command for this help query, one with and one without a prefixed base command
|
||||||
FoundCommandResult result = Core.getCommandHandler().getCommandManager().findCommand(new CommandParts(helpQuery.getList()));
|
FoundCommandResult result = AuthMe.getInstance().getCommandHandler().getCommandManager().findCommand(new CommandParts(helpQuery.getList()));
|
||||||
CommandParts commandReferenceOther = new CommandParts(reference.get(0), helpQuery.getList());
|
CommandParts commandReferenceOther = new CommandParts(reference.get(0), helpQuery.getList());
|
||||||
FoundCommandResult resultOther = Core.getCommandHandler().getCommandManager().findCommand(commandReferenceOther);
|
FoundCommandResult resultOther = AuthMe.getInstance().getCommandHandler().getCommandManager().findCommand(commandReferenceOther);
|
||||||
if(resultOther != null) {
|
if(resultOther != null) {
|
||||||
if(result == null)
|
if(result == null)
|
||||||
result = resultOther;
|
result = resultOther;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user