Fixes an error not differentiating between the two command variations
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
This commit is contained in:
@@ -125,8 +125,8 @@ public class CommandSave implements TabExecutor {
|
||||
//Skip duplicate book
|
||||
if (!fileName.contains("Untitled" + getTitleAuthorSeparator()) && !overwrite) {
|
||||
BooksWithoutBorders.sendErrorMessage(player, "Book is already saved!");
|
||||
BooksWithoutBorders.sendErrorMessage(player, "Use " + getCommandColor() + "/savebook true " +
|
||||
getErrorColor() + "to overwrite!");
|
||||
BooksWithoutBorders.sendErrorMessage(player, "Use " + getCommandColor() + (saveToPublicFolder ?
|
||||
"/savepublicbook" : "/savebook") + "true " + getErrorColor() + "to overwrite!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -134,7 +134,8 @@ public class CommandSave implements TabExecutor {
|
||||
if (foundDuplicates > BooksWithoutBordersConfig.getBookDuplicateLimit()) {
|
||||
BooksWithoutBorders.sendErrorMessage(player, "Maximum amount of " + fileName +
|
||||
" duplicates reached!");
|
||||
BooksWithoutBorders.sendErrorMessage(player, "Use " + getCommandColor() + "/savebook true " +
|
||||
BooksWithoutBorders.sendErrorMessage(player, "Use " + getCommandColor() + (saveToPublicFolder ?
|
||||
"/savepublicbook" : "/savebook") + "true " +
|
||||
getErrorColor() + "to overwrite!");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user