Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
AutoMessage: add permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 25, 2023
1 parent 6954d5d commit e2da13d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void init() {
public void send(@NotNull Player player) {
FPlayer fPlayer = playerManager.get(player);
if (fPlayer == null) return;
if (hasNoPermission(player)) return;

String autoMessage = fPlayer.getSettings().getValue(Settings.Type.AUTO_MESSAGE);
boolean enabled = autoMessage == null || Integer.parseInt(autoMessage) != -1;
Expand Down

0 comments on commit e2da13d

Please sign in to comment.