Skip to content

Commit 325b5d7

Browse files
committed
Fix null error when world name for non-player placeholders not specified
1 parent 6c50bfb commit 325b5d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)