mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-31 04:21:40 +01:00
chore: pre-commit changes [skip ci]
This commit is contained in:
parent
e1a9e3d86f
commit
7a13bd8f47
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user