Skip to content

Commit 35bbc98

Browse files
committed
revert all changes about bump language level, adapt PAPIP with Java8
1 parent 54c4e7e commit 35bbc98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/maxgamer/quickshop/util/language/text/postprocessing/impl/PlaceHolderApiProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
public class PlaceHolderApiProcessor implements PostProcessor {
1212
@Override
1313
public @NotNull String process(@NotNull String text, @Nullable CommandSender sender, String... args) {
14-
if(sender instanceof OfflinePlayer player) {
14+
if(sender instanceof OfflinePlayer) {
1515
if (Bukkit.getPluginManager().isPluginEnabled("PlaceHolderAPI")) {
16-
return PlaceholderAPI.setPlaceholders(player,text);
16+
return PlaceholderAPI.setPlaceholders((OfflinePlayer) sender,text);
1717
}
1818
}
1919
return text;

0 commit comments

Comments
 (0)