fix possible error for console

This commit is contained in:
Lennart ten wolde 2017-02-08 16:07:38 +01:00
parent f56fa4d35e
commit 2a42336796

View file

@ -33,7 +33,11 @@ public class CommandHelp extends Command {
String alias = command instanceof CommandMarry ? "" : command.getAliases()[0] + " ";
String text = "&a/marry " + alias + command.getUsage() + " &f- &7" + command.getDescription();
if(command.getExecutionFee() == 0.0 || !Bukkit.getVersion().contains("Spigot") || !marriage.dependencies().isEconomyEnabled()) {
if(command.getExecutionFee() == 0.0 || !Bukkit.getVersion().contains("Spigot") || !marriage.dependencies().isEconomyEnabled() || player == null) {
reply(text);
continue;
}
if(player.spigot() == null) {
reply(text);
continue;
}