Skip to content

Commit

Permalink
Update to PGM 0.16 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
TBG1000 committed Mar 16, 2023
1 parent 9ad241d commit 55afa65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<!-- Repository Locations -->
<repositories>
<repository>
<id>ashcon-repo</id>
<url>https://repo.ashcon.app/content/repositories/snapshots</url>
<id>pgm-repo</id>
<url>https://repo.pgm.fyi/snapshots</url>
</repository>
<repository>
<id>snapshots-repo</id>
Expand All @@ -31,13 +31,13 @@
<dependency>
<groupId>tc.oc.pgm</groupId>
<artifactId>core</artifactId>
<version>0.14-SNAPSHOT</version>
<version>0.16-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>tc.oc.pgm</groupId>
<artifactId>util</artifactId>
<version>0.14-SNAPSHOT</version>
<version>0.16-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/tbg/match/bot/DiscordBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 55afa65

Please sign in to comment.