Skip to content

Commit

Permalink
Fixed Update version placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Wertik committed May 25, 2020
1 parent 6bd86ba commit 09393ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>nl.aurorion.blockregen</groupId>
<artifactId>BlockRegen</artifactId>
<version>3.5.8-b3</version>
<version>3.5.8-b4</version>

<name>BlockRegen</name>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public void onJoin(PlayerJoinEvent event) {
// newVersion will be null when the checker is disabled, or there are no new available
if (!player.hasPermission("blockregen.admin") || plugin.newVersion == null) return;

player.sendMessage(Message.UPDATE.get());
player.sendMessage(Message.UPDATE.get().replaceAll("(?i)%newVersion%", plugin.newVersion).replaceAll("(?i)%version%", plugin.getDescription().getVersion()));
}
}

0 comments on commit 09393ba

Please sign in to comment.