chore: pre-commit changes [skip ci]

This commit is contained in:
github-actions[bot] 2025-01-07 21:43:08 +00:00
parent e1a9e3d86f
commit 7a13bd8f47
2 changed files with 13 additions and 5 deletions

View File

@ -141,9 +141,14 @@ public class DestinationServices {
.getLoc()
.getWorldName())
== null) {
player.sendMessage(Lang.getNegativePrefix() + Lang.translateInsertVariables(
player.sendMessage(
Lang.getNegativePrefix()
+ Lang.translateInsertVariables(
"desti.error.invalidworld",
destinationRepository.get(name).getName(), destinationRepository.get(name).getLoc().getWorldName()));
destinationRepository.get(name).getName(),
destinationRepository.get(name)
.getLoc()
.getWorldName()));
return false;
}

View File

@ -139,10 +139,13 @@ public class DestiTag implements Tag.Activation, Tag.AutoComplete, Tag.Split {
Destination destination =
destinationServices.getDestination(selectedArg);
if (serverContainer.getWorld(destination.getLoc().getWorldName()) == null) {
player.sendMessage(Lang.getNegativePrefix() + Lang.translateInsertVariables(
if (serverContainer.getWorld(destination.getLoc().getWorldName())
== null) {
player.sendMessage(Lang.getNegativePrefix()
+ Lang.translateInsertVariables(
"desti.error.invalidworld",
destination.getName(), destination.getLoc().getWorldName()));
destination.getName(),
destination.getLoc().getWorldName()));
return false;
}