Skip to content

Commit

Permalink
event.getPlayer() -> player
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDiscordian committed Feb 23, 2024
1 parent b018ba2 commit 2554105
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 class JoinEventListener implements Listener {
@EventHandler
public void onJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
if (BlockProt.getDefaultConfig().shouldNotifyOpOfUpdates() && event.getPlayer().isOp()) {
if (BlockProt.getDefaultConfig().shouldNotifyOpOfUpdates() && player.isOp()) {
Bukkit.getScheduler().runTaskAsynchronously(
BlockProt.getInstance(),
new UpdateChecker(
Expand Down

0 comments on commit 2554105

Please sign in to comment.