Skip to content

Commit

Permalink
Updated dependencies & Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Oct 25, 2022
1 parent db8f328 commit 7c524be
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Build RandomSpawnPlus5 - Maven
name: Build RandomSpawnPlus5

on: [ push ]

jobs:
build:
name: Build
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -21,4 +20,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: RandomSpawnPlus5
path: target/
path: target/*.jar
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# RandomSpawnPlus5

🔀 A random spawn plugin for Minecraft 1.19.

Native support 1.19.2

Support 1.8.x - 1.19.x (maybe?)


## Contact

- 📫 Discord: `Dreeam#0851` | QQ: `2682173972`
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>systems.kscott</groupId>
<artifactId>randomspawnplus</artifactId>
<version>5.0.1</version>
<version>5.0.2</version>
<packaging>jar</packaging>

<name>RandomSpawnPlus</name>
Expand Down Expand Up @@ -95,13 +95,13 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<version>1.19.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand All @@ -112,7 +112,7 @@
<dependency>
<groupId>net.essentialsx</groupId>
<artifactId>EssentialsX</artifactId>
<version>2.19.4</version>
<version>2.19.7</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void setupPermissions() {
}

private void setupEconomy() throws Exception {
RegisteredServiceProvider<Economy> rsp = Bukkit.getServicesManager().getRegistration(Economy.class);
RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
if (rsp == null) {
throw new Exception("Error when loading the Vault API");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ public Location getCandidateLocation() {
maxZ = region.getMaxZ();
}

System.out.println(minX);
System.out.println(minZ);
System.out.println(maxX);
System.out.println(maxZ);

boolean debugMode = config.getBoolean("debug-mode");
if (debugMode) {
System.out.println(minX);
System.out.println(minZ);
System.out.println(maxX);
System.out.println(maxZ);
}

int candidateX = Numbers.getRandomNumberInRange(minX, maxX);
int candidateZ = Numbers.getRandomNumberInRange(minZ, maxZ);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#############################
# RandomSpawnPlus5 #
# Version 5.0.1 #
# Version 5.0.2 #
# by @89apt89 & @Dreeam #
#############################

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lang.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#############################
# RandomSpawnPlus5 #
# Version 5.0.1 #
# Version 5.0.2 #
# by @89apt89 & @Dreeam #
#############################

Expand Down

0 comments on commit 7c524be

Please sign in to comment.