Skip to content

Commit

Permalink
Fix PAF Null issue (#853)
Browse files Browse the repository at this point in the history
* Fix PAF Null issue

* Update Github actions

* Build 1.20 module against 1.20.1
  • Loading branch information
JT122406 authored Oct 31, 2023
1 parent 61d922e commit 34976a6
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
name: development
url: https://repo.andrei1058.dev
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '19.0.2+7'
distribution: 'adopt'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
name: production
url: https://repo.andrei1058.com
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '19.0.2+7'
distribution: 'adopt'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
name: development
url: https://repo.andrei1058.dev
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '19.0.2+7'
distribution: 'adopt'
Expand Down
12 changes: 6 additions & 6 deletions bedwars-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>de.simonsator</groupId>
<artifactId>DevelopmentPAFSpigot</artifactId>
<version>1.0.67</version>
<version>1.0.239</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -206,7 +206,7 @@
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.2</version>
<version>2.11.3</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -219,7 +219,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<version>2.13.0</version>
<optional>true</optional>
</dependency>
<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
Expand All @@ -239,7 +239,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.6</version>
<version>2.0.7</version>
<optional>true</optional>
</dependency>

Expand Down Expand Up @@ -341,7 +341,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<version>3.5.0</version>
<configuration>
<relocations>
<relocation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
public class PAF implements Party {
//Party and Friends for Spigot Support by JT122406
private PlayerParty getPAFParty(Player p) {
if (PAFPlayerManager.getInstance() == null) return null;
return PartyManager.getInstance().getParty(PAFPlayerManager.getInstance().getPlayer(p));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class PAFBungeecordRedisApi implements Party {
//Party and Friends Extended for BungeeCord Support by JT122406

private PlayerParty getPAFParty(Player p) {
if (PAFPlayerManager.getInstance() == null) return null;
return PartyManager.getInstance().getParty(PAFPlayerManager.getInstance().getPlayer(p.getUniqueId()));
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<version>2.13.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion versionsupport_v1_20_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.20-R0.1-SNAPSHOT</version>
<version>1.20.1-R0.1-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down

0 comments on commit 34976a6

Please sign in to comment.