Skip to content

Commit d7ad2e6

Browse files
authored
Merge pull request #185 from Xyness/feature/fix-scs
Prevent integration with SimpleClaimSystem 2.x.x
2 parents b67a9b4 + d1dc384 commit d7ad2e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/src/main/java/github/nighter/smartspawner/hooks/IntegrationManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ private void checkProtectionPlugins() {
9999
if (simpleClaimPlugin == null || !simpleClaimPlugin.isEnabled()) {
100100
return false;
101101
}
102+
// Prevent SimpleClaimSystem paid version (2.x.x)
103+
if (simpleClaimPlugin.getDescription().getVersion().startsWith("2.")) {
104+
return false;
105+
}
102106
SimpleClaimSystemAPI_Provider.initialize((SimpleClaimSystem) simpleClaimPlugin);
103107
return SimpleClaimSystemAPI_Provider.getAPI() != null;
104108
}, true);

0 commit comments

Comments
 (0)