Skip to content

Commit

Permalink
added update message permission
Browse files Browse the repository at this point in the history
  • Loading branch information
ezTxmMC committed Aug 18, 2024
1 parent e8e548c commit 6a6c940
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void onJoin(PlayerJoinEvent event) {
playerManager.addJoinScheduler(player.getUniqueId(), bukkitTask);
playerManager.addUserGroup(player.getUniqueId(), group);
UpdateChecker checker = LuckPrefix.getInstance().getUpdateChecker();
if (!checker.latestVersion()) {
if (!checker.latestVersion() && player.hasPermission("luckprefix.update")) {
player.sendMessage(new Text(LuckPrefix.getInstance().getPrefix() +
"There is a new update available: <u><click:open_url:https://modrinth.com/plugin/luckprefix>" + checker.getCachedLatestVersion() + "</click></u>").legacyMiniMessage());
}
Expand Down

0 comments on commit 6a6c940

Please sign in to comment.