mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Fix minor /book bug (Null author)
This commit is contained in:
parent
1679790157
commit
1ccda52e9f
3 changed files with 4 additions and 3 deletions
|
@ -83,6 +83,7 @@ public class Commandbook extends EssentialsCommand
|
|||
|
||||
private boolean isAuthor(BookMeta bmeta, String player)
|
||||
{
|
||||
return bmeta.getAuthor().equalsIgnoreCase(player);
|
||||
String author = bmeta.getAuthor();
|
||||
return author != null && author.equalsIgnoreCase(player);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue