Skip to content

Commit 34cd8ba

Browse files
authored
Fix list command links only shows if world has an alias name (#292)
1 parent 642206a commit 34cd8ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import org.bukkit.PortalType;
55
import org.mvplugins.multiverse.core.command.LegacyAliasCommand;
66
import org.mvplugins.multiverse.core.command.MVCommandIssuer;
7-
import org.mvplugins.multiverse.core.command.MVCommandManager;
87
import org.mvplugins.multiverse.core.display.ContentDisplay;
98
import org.mvplugins.multiverse.core.display.handlers.PagedSendHandler;
109
import org.mvplugins.multiverse.core.display.parsers.ListContentProvider;
@@ -122,7 +121,7 @@ private String parseSingleLink(@NotNull String fromWorldString,
122121

123122
private String ParseWorldString(@NotNull String worldName) {
124123
return this.worldManager.getLoadedWorld(worldName)
125-
.map(MultiverseWorld::getAlias)
124+
.map(MultiverseWorld::getAliasOrName)
126125
.getOrElse(ChatColor.GRAY + worldName + ChatColor.RED + " !!ERROR!!");
127126
}
128127

0 commit comments

Comments
 (0)