Skip to content

Commit 167f6f8

Browse files
authored
Merge pull request #3423 from Multiverse/fix/placeholder-null
Fix null error when world name for non-player placeholders not specified
2 parents 6c50bfb + 325b5d7 commit 167f6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public boolean persist() {
113113
return Option.of(player.getWorld().getName());
114114
} else {
115115
warning("You must specify a world name for non-player placeholders");
116-
return null;
116+
return Option.none();
117117
}
118118
}
119119

0 commit comments

Comments
 (0)