File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
java/io/github/rothes/protocolstringreplacer Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11package io .github .rothes .protocolstringreplacer ;
22
33import com .sk89q .protocolstringreplacer .PsrDisguisePlugin ;
4- import de .tr7zw .changeme .nbtapi .utils .MinecraftVersion ;
54import io .github .rothes .protocolstringreplacer .api .configuration .CommentYamlConfiguration ;
65import io .github .rothes .protocolstringreplacer .api .user .PsrUser ;
76import 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 ();
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ folia-supported: true
77softdepend :
88 - ProtocolLib
99 - PlaceholderAPI
10+ - NBTAPI
1011commands :
1112 protocolstringreplacer :
1213 aliases : [psr]
You can’t perform that action at this time.
0 commit comments