Skip to content

Commit 7c524be

Browse files
committed
Updated dependencies & Small fixes
1 parent db8f328 commit 7c524be

File tree

7 files changed

+26
-15
lines changed

7 files changed

+26
-15
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
name: Build RandomSpawnPlus5 - Maven
1+
name: Build RandomSpawnPlus5
22

33
on: [ push ]
44

55
jobs:
66
build:
77
name: Build
88
runs-on: ubuntu-latest
9-
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
109
steps:
1110
- uses: actions/checkout@v3
1211
- name: Set up JDK 17
@@ -21,4 +20,4 @@ jobs:
2120
uses: actions/upload-artifact@v3
2221
with:
2322
name: RandomSpawnPlus5
24-
path: target/
23+
path: target/*.jar

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# RandomSpawnPlus5
2+
23
🔀 A random spawn plugin for Minecraft 1.19.
4+
5+
Native support 1.19.2
6+
7+
Support 1.8.x - 1.19.x (maybe?)
8+
9+
10+
## Contact
11+
12+
- 📫 Discord: `Dreeam#0851` | QQ: `2682173972`

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>systems.kscott</groupId>
88
<artifactId>randomspawnplus</artifactId>
9-
<version>5.0.1</version>
9+
<version>5.0.2</version>
1010
<packaging>jar</packaging>
1111

1212
<name>RandomSpawnPlus</name>
@@ -95,13 +95,13 @@
9595
<dependency>
9696
<groupId>io.papermc.paper</groupId>
9797
<artifactId>paper-api</artifactId>
98-
<version>1.19-R0.1-SNAPSHOT</version>
98+
<version>1.19.2-R0.1-SNAPSHOT</version>
9999
<scope>provided</scope>
100100
</dependency>
101101
<dependency>
102102
<groupId>commons-io</groupId>
103103
<artifactId>commons-io</artifactId>
104-
<version>2.5</version>
104+
<version>2.11.0</version>
105105
</dependency>
106106
<dependency>
107107
<groupId>org.projectlombok</groupId>
@@ -112,7 +112,7 @@
112112
<dependency>
113113
<groupId>net.essentialsx</groupId>
114114
<artifactId>EssentialsX</artifactId>
115-
<version>2.19.4</version>
115+
<version>2.19.7</version>
116116
<scope>provided</scope>
117117
</dependency>
118118
<dependency>

src/main/java/systems/kscott/randomspawnplus/RandomSpawnPlus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private void setupPermissions() {
127127
}
128128

129129
private void setupEconomy() throws Exception {
130-
RegisteredServiceProvider<Economy> rsp = Bukkit.getServicesManager().getRegistration(Economy.class);
130+
RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
131131
if (rsp == null) {
132132
throw new Exception("Error when loading the Vault API");
133133
}

src/main/java/systems/kscott/randomspawnplus/spawn/SpawnFinder.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ public Location getCandidateLocation() {
8686
maxZ = region.getMaxZ();
8787
}
8888

89-
System.out.println(minX);
90-
System.out.println(minZ);
91-
System.out.println(maxX);
92-
System.out.println(maxZ);
93-
89+
boolean debugMode = config.getBoolean("debug-mode");
90+
if (debugMode) {
91+
System.out.println(minX);
92+
System.out.println(minZ);
93+
System.out.println(maxX);
94+
System.out.println(maxZ);
95+
}
9496

9597
int candidateX = Numbers.getRandomNumberInRange(minX, maxX);
9698
int candidateZ = Numbers.getRandomNumberInRange(minZ, maxZ);

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#############################
22
# RandomSpawnPlus5 #
3-
# Version 5.0.1 #
3+
# Version 5.0.2 #
44
# by @89apt89 & @Dreeam #
55
#############################
66

src/main/resources/lang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#############################
22
# RandomSpawnPlus5 #
3-
# Version 5.0.1 #
3+
# Version 5.0.2 #
44
# by @89apt89 & @Dreeam #
55
#############################
66

0 commit comments

Comments
 (0)