Skip to content

Commit 860fba3

Browse files
committed
No longer build-in NBTAPI
1 parent fbd36c9 commit 860fba3

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

bukkit/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dependencies {
1414
paperweight.paperDevBundle("$serverVer-R0.1-SNAPSHOT")
1515
implementation("commons-collections:commons-collections:3.2.2")
1616
implementation("org.neosearch.stringsearcher:multiple-string-searcher:0.1.1")
17-
implementation("de.tr7zw:item-nbt-api:2.15.0")
1817
implementation("org.bstats:bstats-bukkit:3.0.2")
18+
compileOnly("de.tr7zw:item-nbt-api:2.15.0")
1919
compileOnly("com.comphenix.protocol:ProtocolLib:5.3.0")
2020
compileOnly("me.clip:placeholderapi:2.11.6")
2121
compileOnly("org.apache.logging.log4j:log4j-api:2.23.1")
@@ -36,7 +36,6 @@ tasks {
3636
relocate("org.bstats", "io.github.rothes.protocolstringreplacer.lib.org.bstats")
3737
relocate("org.apache.commons.collections", "io.github.rothes.protocolstringreplacer.lib.org.apache.commons.collections")
3838
relocate("org.neosearch.stringsearcher", "io.github.rothes.protocolstringreplacer.lib.org.neosearch.stringsearcher")
39-
relocate("de.tr7zw.changeme.nbtapi", "io.github.rothes.protocolstringreplacer.lib.de.tr7zw.changeme.nbtapi")
4039
relocate("kotlin", "io.github.rothes.protocolstringreplacer.lib.kotlin")
4140
}
4241

bukkit/src/main/java/io/github/rothes/protocolstringreplacer/ProtocolStringReplacer.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.github.rothes.protocolstringreplacer;
22

33
import com.sk89q.protocolstringreplacer.PsrDisguisePlugin;
4-
import de.tr7zw.changeme.nbtapi.utils.MinecraftVersion;
54
import io.github.rothes.protocolstringreplacer.api.configuration.CommentYamlConfiguration;
65
import io.github.rothes.protocolstringreplacer.api.user.PsrUser;
76
import io.github.rothes.protocolstringreplacer.api.user.PsrUserManager;
@@ -191,7 +190,7 @@ public void onEnable() {
191190
warn("\033[0;31m" + PsrLocalization.getLocaledMessage("Console-Sender.Messages.Initialize.Recommend-Paper") + "\033[0m");
192191
}
193192
}
194-
if (!checkDepends("ProtocolLib")) {
193+
if (!checkDepends("ProtocolLib", "NBTAPI")) {
195194
initialize();
196195
new Updater(this).start();
197196
}
@@ -263,8 +262,6 @@ private void initialize() {
263262
packetListenerManager = new PacketListenerManager();
264263
packetListenerManager.initialize();
265264
commandHandler.initialize();
266-
// init NBT-API
267-
MinecraftVersion.getVersion();
268265
for (Player player : Bukkit.getOnlinePlayers()) {
269266
userManager.loadUser(player);
270267
player.updateInventory();

bukkit/src/main/resources/plugin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ folia-supported: true
77
softdepend:
88
- ProtocolLib
99
- PlaceholderAPI
10+
- NBTAPI
1011
commands:
1112
protocolstringreplacer:
1213
aliases: [psr]

0 commit comments

Comments
 (0)