Skip to content

Commit 0fa8ba2

Browse files
authored
Fix link message only shows if world has an alias name (#290)
1 parent 2c22529 commit 0fa8ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/mvplugins/multiverse/netherportals/commands/LinkCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public void onLinkCommand(
5959
throw new InvalidCommandArgument("There was an error creating the link! See console for more details.");
6060
}
6161

62-
String coloredFrom = fromWorld.getAlias();
63-
String coloredTo = toWorld.getAlias();
62+
String coloredFrom = fromWorld.getAliasOrName();
63+
String coloredTo = toWorld.getAliasOrName();
6464

6565
issuer.sendMessage((fromWorld.getName().equals(toWorld.getName()))
6666
? String.format("%sNOTE: %sYou have %ssuccessfully disabled %s%s Portals in %s.",

0 commit comments

Comments
 (0)