Skip to content

Commit

Permalink
chore: merge pull request #4 from ryderbelserion/main
Browse files Browse the repository at this point in the history
Uses the correct permission in velocity/waterfall on join.
  • Loading branch information
NotGeri authored Apr 15, 2024
2 parents 399472c + 7d96f69 commit 9f261e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onQuit(DisconnectEvent event) {
public void onJoin(LoginEvent event) {
Player player = event.getPlayer();

if (player.hasPermission("bab.admin.actionbar.autoenable")) {
if (player.hasPermission("bab.admin.actionbar.onjoin")) {
this.plugin.getManager().addSeer(player.getUniqueId());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public WaterfallLoginListener(CounterManager manager) {
public void onJoin(PostLoginEvent event) {
ProxiedPlayer player = event.getPlayer();

if (player.hasPermission("bab.admin.actionbar.autoenable")) {
if (player.hasPermission("bab.admin.actionbar.onjoin")) {
this.manager.addSeer(player.getUniqueId());
}
}
Expand Down

0 comments on commit 9f261e7

Please sign in to comment.