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

Commit

Permalink
CommandMaintenance: fix and add permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 8, 2023
1 parent 68f2058 commit 0706880
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void playerLoginEvent(@NotNull PlayerLoginEvent event) {
if (!commands.getBoolean("maintenance.turned-on")) return;

Player player = event.getPlayer();
if (player.hasPermission("flectonechat.commands.maintenance")) return;

String kickedMessage = locale.getVaultString(player, "commands.maintenance.kicked-message");
kickedMessage = MessageUtil.formatAll(player, kickedMessage);
Expand Down

0 comments on commit 0706880

Please sign in to comment.