From 55afa6510070e8ad58244b79130e2a26a818d712 Mon Sep 17 00:00:00 2001 From: TBG <46306028+TBG1000@users.noreply.github.com> Date: Thu, 16 Mar 2023 15:02:56 -0600 Subject: [PATCH] Update to PGM 0.16 (untested) --- pom.xml | 8 ++++---- src/main/java/me/tbg/match/bot/DiscordBot.java | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 8ede303..08c596c 100644 --- a/pom.xml +++ b/pom.xml @@ -11,8 +11,8 @@ - ashcon-repo - https://repo.ashcon.app/content/repositories/snapshots + pgm-repo + https://repo.pgm.fyi/snapshots snapshots-repo @@ -31,13 +31,13 @@ tc.oc.pgm core - 0.14-SNAPSHOT + 0.16-SNAPSHOT provided tc.oc.pgm util - 0.14-SNAPSHOT + 0.16-SNAPSHOT provided diff --git a/src/main/java/me/tbg/match/bot/DiscordBot.java b/src/main/java/me/tbg/match/bot/DiscordBot.java index 76723aa..4f85183 100644 --- a/src/main/java/me/tbg/match/bot/DiscordBot.java +++ b/src/main/java/me/tbg/match/bot/DiscordBot.java @@ -17,6 +17,7 @@ import tc.oc.pgm.api.match.Match; import tc.oc.pgm.rotation.MapPoolManager; import tc.oc.pgm.rotation.pools.MapPool; +import tc.oc.pgm.api.integration.Integration; public class DiscordBot { @@ -140,7 +141,7 @@ public long getOnlineStaffCount(Match match) { // Line 88 return match.getPlayers().stream() .filter( - player -> (player.getBukkit().hasPermission(Permissions.STAFF) && !player.isVanished())) + player -> (player.getBukkit().hasPermission(Permissions.STAFF) && !Integration.isVanished(player.getBukkit()))) .count(); }