mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 10:35:18 +01:00
Updates UltimateClaims dependency to latest snapshot
This commit is contained in:
parent
5345452f2a
commit
10f0d28673
@ -384,7 +384,7 @@
|
||||
<dependency>
|
||||
<groupId>com.craftaro</groupId>
|
||||
<artifactId>UltimateClaims</artifactId>
|
||||
<version>2.0.0-b2-SNAPSHOT</version>
|
||||
<version>2.0.0-b4-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -6,6 +6,7 @@ import com.craftaro.ultimateclaims.member.ClaimPerm;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class UltimateClaimsProtection extends Protection {
|
||||
private final UltimateClaims instance;
|
||||
@ -13,7 +14,7 @@ public class UltimateClaimsProtection extends Protection {
|
||||
public UltimateClaimsProtection(Plugin plugin) {
|
||||
super(plugin);
|
||||
|
||||
instance = UltimateClaims.getInstance();
|
||||
this.instance = JavaPlugin.getPlugin(UltimateClaims.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -32,7 +33,7 @@ public class UltimateClaimsProtection extends Protection {
|
||||
}
|
||||
|
||||
private boolean hasPerms(Player player, Location location, ClaimPerm claimPerm) {
|
||||
Claim claim = instance.getClaimManager().getClaim(location.getChunk());
|
||||
Claim claim = this.instance.getClaimManager().getClaim(location.getChunk());
|
||||
if (claim == null) {
|
||||
return true;
|
||||
}
|
||||
@ -47,6 +48,6 @@ public class UltimateClaimsProtection extends Protection {
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return instance != null;
|
||||
return this.instance != null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user