Skip to content

Commit

Permalink
Add 1.20.3 and 1.20.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
galacticwarrior9 committed Feb 18, 2024
1 parent 436ea53 commit 2879213
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.2-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/org/maxgamer/quickshop/economy/Trader.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,16 @@ public boolean isOp() {
public void setOp(boolean value) {
offlinePlayer.setOp(value);
}

@Nullable
@Override
public Location getLocation() {
return offlinePlayer.getLocation();
}

@Nullable
@Override
public Location getRespawnLocation() {
return offlinePlayer.getRespawnLocation();
}
}
1 change: 1 addition & 0 deletions src/main/java/org/maxgamer/quickshop/util/GameVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public enum GameVersion {
v1_19_R3(true, false, true, true, true, true),
v1_20_R1(true, false, true, true, true, true),
v1_20_R2(true, false, true, true, true, true),
v1_20_R3(true, false, true, true, true, true),

UNKNOWN(true, false, false, true, true, true);
/**
Expand Down

0 comments on commit 2879213

Please sign in to comment.