From ea065737566c951aedf95c64e05587aa63abdb3f Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Fri, 12 Apr 2024 23:56:05 -0400 Subject: [PATCH 1/2] Used the wrong permission for the login listener --- .../src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java b/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java index ab2d923..6376764 100644 --- a/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java +++ b/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java @@ -21,7 +21,7 @@ public void onPlayerJoinEvent(PlayerJoinEvent e) { Player player = e.getPlayer(); - if (player.hasPermission("bab.admin.actionbar.onjoin")) { + if (player.hasPermission("bab.admin.actionbar.autoenable")) { this.plugin.getManager().addSeer(player.getUniqueId()); } } From 7d96f69ce475c8e9a11210c3286f372aa1b6a08d Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Fri, 12 Apr 2024 23:57:46 -0400 Subject: [PATCH 2/2] Use the correct permission that matches the release --- .../src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java | 2 +- .../main/java/host/bloom/ab/velocity/VelocityLoginListener.java | 2 +- .../java/host/bloom/ab/waterfall/WaterfallLoginListener.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java b/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java index 6376764..ab2d923 100644 --- a/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java +++ b/bukkit/src/main/java/host/bloom/ab/bukkit/BukkitLoginListener.java @@ -21,7 +21,7 @@ public void onPlayerJoinEvent(PlayerJoinEvent e) { Player player = e.getPlayer(); - if (player.hasPermission("bab.admin.actionbar.autoenable")) { + if (player.hasPermission("bab.admin.actionbar.onjoin")) { this.plugin.getManager().addSeer(player.getUniqueId()); } } diff --git a/velocity/src/main/java/host/bloom/ab/velocity/VelocityLoginListener.java b/velocity/src/main/java/host/bloom/ab/velocity/VelocityLoginListener.java index 1d76ab4..1abc0f1 100644 --- a/velocity/src/main/java/host/bloom/ab/velocity/VelocityLoginListener.java +++ b/velocity/src/main/java/host/bloom/ab/velocity/VelocityLoginListener.java @@ -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()); } } diff --git a/waterfall/src/main/java/host/bloom/ab/waterfall/WaterfallLoginListener.java b/waterfall/src/main/java/host/bloom/ab/waterfall/WaterfallLoginListener.java index 2a19400..108495f 100644 --- a/waterfall/src/main/java/host/bloom/ab/waterfall/WaterfallLoginListener.java +++ b/waterfall/src/main/java/host/bloom/ab/waterfall/WaterfallLoginListener.java @@ -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()); } }