mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 11:06:08 +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)
|
private boolean isAuthor(BookMeta bmeta, String player)
|
||||||
{
|
{
|
||||||
return bmeta.getAuthor().equalsIgnoreCase(player);
|
String author = bmeta.getAuthor();
|
||||||
|
return author != null && author.equalsIgnoreCase(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -484,7 +484,7 @@ bookTitleSet=\u00a76Title of the book set to {0}
|
||||||
denyChangeAuthor=\u00a74You cannot change the author of this book
|
denyChangeAuthor=\u00a74You cannot change the author of this book
|
||||||
denyChangeTitle=\u00a74You cannot change the title of this book
|
denyChangeTitle=\u00a74You cannot change the title of this book
|
||||||
denyBookEdit=\u00a74You cannot unlock this book
|
denyBookEdit=\u00a74You cannot unlock this book
|
||||||
bookLocked=\u00a7cThis book is now locked
|
bookLocked=\u00a76This book is now locked
|
||||||
holdBook=\u00a74You are not holding a writable book
|
holdBook=\u00a74You are not holding a writable book
|
||||||
fireworkColor=\u00a74You must apply a color to the firework to add an effect
|
fireworkColor=\u00a74You must apply a color to the firework to add an effect
|
||||||
holdFirework=\u00a74You must be holding a firework to add effects
|
holdFirework=\u00a74You must be holding a firework to add effects
|
||||||
|
|
|
@ -484,7 +484,7 @@ bookTitleSet=\u00a76Title of the book set to {0}
|
||||||
denyChangeAuthor=\u00a74You cannot change the author of this book
|
denyChangeAuthor=\u00a74You cannot change the author of this book
|
||||||
denyChangeTitle=\u00a74You cannot change the title of this book
|
denyChangeTitle=\u00a74You cannot change the title of this book
|
||||||
denyBookEdit=\u00a74You cannot unlock this book
|
denyBookEdit=\u00a74You cannot unlock this book
|
||||||
bookLocked=\u00a7cThis book is now locked
|
bookLocked=\u00a76This book is now locked
|
||||||
holdBook=\u00a74You are not holding a writable book
|
holdBook=\u00a74You are not holding a writable book
|
||||||
fireworkColor=\u00a74You must apply a color to the firework to add an effect
|
fireworkColor=\u00a74You must apply a color to the firework to add an effect
|
||||||
holdFirework=\u00a74You must be holding a firework to add effects
|
holdFirework=\u00a74You must be holding a firework to add effects
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue