Skip to content

Commit ab5507d

Browse files
committed
Fix manual specifying group name for placeholders
1 parent 2838581 commit ab5507d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/mvplugins/multiverse/inventories/PlaceholderExpansionHook.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ private String groupPlaceholders(OfflinePlayer offlinePlayer, List<String> param
107107
warning("Group not found: " + paramsArray.get(paramsArray.size() - 1));
108108
return null;
109109
}
110-
}
111-
if (offlinePlayer instanceof Player player) {
110+
} else if (offlinePlayer instanceof Player player) {
112111
group = worldGroupManager.getGroupsForWorld(player.getWorld().getName())
113112
.stream()
114113
.findFirst()

0 commit comments

Comments
 (0)