Skip to content

Commit 5893de2

Browse files
committed
Remove useless BKCommonLib dependencies
1 parent 71493d0 commit 5893de2

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,6 @@
365365
<id>IridiumDevelopment</id>
366366
<url>https://nexus.iridiumdevelopment.net/repository/maven-releases/</url>
367367
</repository>
368-
<repository>
369-
<id>MG-Dev Jenkins CI Maven Repository</id>
370-
<url>https://ci.mg-dev.eu/plugin/repository/everything/</url>
371-
</repository>
372368
<repository>
373369
<id>Sparky</id>
374370
<url>https://nexus.sparky.ac/repository/Sparky/</url>
@@ -840,12 +836,6 @@
840836
<version>2.11.0</version>
841837
<scope>compile</scope>
842838
</dependency>
843-
<dependency>
844-
<groupId>com.bergerkiller.bukkit</groupId>
845-
<artifactId>BKCommonLib</artifactId>
846-
<version>1.17.1-v3</version>
847-
<scope>provided</scope>
848-
</dependency>
849839
<dependency>
850840
<groupId>org.maxgamer.storage</groupId>
851841
<artifactId>simplixstorage</artifactId>

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.bukkit.entity.Player;
4040
import org.bukkit.event.HandlerList;
4141
import org.bukkit.event.entity.ItemSpawnEvent;
42-
import org.bukkit.plugin.*;
4342
import org.bukkit.plugin.java.JavaPlugin;
4443
import org.bukkit.plugin.java.JavaPluginLoader;
4544
import org.bukkit.scheduler.BukkitRunnable;
@@ -1956,6 +1955,12 @@ private void updateConfig(int selectedVersion) throws IOException {
19561955
getConfiguration().remove("language");
19571956
getConfiguration().set("config-version", ++selectedVersion);
19581957
}
1958+
if (selectedVersion == 147) {
1959+
// Updater set it to true because plugin upgrading
1960+
// Default configuration disable it cause probably fresh install
1961+
getConfiguration().remove("plugin.BKCommonLib");
1962+
getConfiguration().set("config-version", ++selectedVersion);
1963+
}
19591964
if (getConfiguration().getInt("matcher.work-type") != 0 && GameVersion.get(ReflectFactory.getServerVersion()).name().contains("1_16")) {
19601965
getLogger().warning("You are not using QS Matcher, it may meeting item comparing issue mentioned there: https://hub.spigotmc.org/jira/browse/SPIGOT-5063");
19611966
}

src/main/resources/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# QuickShop-Reremake Plugin Configuration
22

33
#Do not touch this if you don't know what you're doing!
4-
config-version: 147
4+
config-version: 148
55

66
#This language will used by Item Name, Enchantment Name,
77
#and Potion Effect Name or the text on the shop info sign (nbtapi not installed) and other them related position.
@@ -456,8 +456,6 @@ plugin:
456456
PlaceHolderAPI: true
457457
#If you have LWC/LWCX, QuickShop will check access.
458458
LWC: true
459-
#If you have BKCommonLib, QuickShop will load fast utils to improve performance.
460-
BKCommonLib: true
461459
#If you use BlockHub, Should QuickShop use BlockHub to check region access for players?
462460
BlockHub:
463461
enable: true

0 commit comments

Comments
 (0)