Skip to content

Commit

Permalink
fix: NoClassDefFoundError in RTP_HuskTowns
Browse files Browse the repository at this point in the history
  • Loading branch information
kazigk committed Jul 7, 2024
1 parent e6f4984 commit 7796e05
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@
import org.bukkit.Location;

public class RTP_HuskTowns implements RegionPluginCheck {

private final BukkitHuskTownsAPI huskTownsAPI;

public RTP_HuskTowns() {
this.huskTownsAPI = BukkitHuskTownsAPI.getInstance();
}

@Override
public boolean check(Location loc) {
boolean result = true;
if (REGIONPLUGINS.HUSKTOWNS.isEnabled()) {
try {
result = !huskTownsAPI.getClaimAt(loc).isPresent();
result = !BukkitHuskTownsAPI.getInstance().getClaimAt(loc).isPresent();
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 7796e05

Please sign in to comment.