Translates the remaining strings and fixes a few minor bugs

This commit is contained in:
2022-03-01 18:45:53 +01:00
parent 4602ca71db
commit 664115b2b4
13 changed files with 121 additions and 78 deletions

View File

@ -11,9 +11,6 @@ import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* A representation of the command for adding a new paid sign
@ -76,9 +73,6 @@ public class AddCommand extends TokenizedCommand {
sender.sendMessage(StringFormatter.getTranslatedInfoMessage(TranslatableMessage.SUCCESS_ADDED_PAID_SIGN));
return true;
} catch (IOException e) {
Logger logger = PaidSigns.getInstance().getLogger();
logger.log(Level.SEVERE, "Exception encountered while trying to write to the data file:");
logger.log(Level.SEVERE, Arrays.toString(e.getStackTrace()));
sender.sendMessage(StringFormatter.getTranslatedErrorMessage(TranslatableMessage.ERROR_EXCEPTION_OCCURRED));
return false;
} catch (IllegalArgumentException e) {