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(); }