diff --git a/pom.xml b/pom.xml
index 7d7781d71..88af9daf8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,7 +131,7 @@
com.github.Weesli
RClaim
- 1.2.0
+ 1.9.0
provided
diff --git a/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaim.java b/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaim.java
index fd78776d8..96d0f6d10 100644
--- a/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaim.java
+++ b/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaim.java
@@ -1,7 +1,7 @@
package xyz.geik.farmer.integrations.rclaim;
import net.weesli.rClaim.api.RClaimAPI;
-import net.weesli.rClaim.utils.Claim;
+import net.weesli.rClaim.modal.Claim;
import org.bukkit.Location;
import xyz.geik.farmer.integrations.Integrations;
diff --git a/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaimListener.java b/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaimListener.java
index 71173c99b..a300607e6 100644
--- a/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaimListener.java
+++ b/src/main/java/xyz/geik/farmer/integrations/rclaim/RClaimListener.java
@@ -5,7 +5,7 @@
import net.weesli.rClaim.api.events.ClaimDeleteEvent;
import net.weesli.rClaim.api.events.TrustedPlayerEvent;
import net.weesli.rClaim.api.events.UnTrustedPlayerEvent;
-import net.weesli.rClaim.utils.Claim;
+import net.weesli.rClaim.modal.Claim;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@@ -20,6 +20,7 @@
import java.util.Optional;
import java.util.UUID;
+import java.util.stream.Collectors;
/**
* RClaim Integration Listener class
@@ -49,7 +50,7 @@ public void createClaim(ClaimCreateEvent e){
*/
@EventHandler
public void trustPlayer(TrustedPlayerEvent e){
- Claim claim = RClaimAPI.getInstance().getClaims().stream().filter(c -> c.isOwner(e.getTruster().getUniqueId())).toList().get(0);
+ Claim claim = RClaimAPI.getInstance().getClaims().stream().filter(c -> c.isOwner(e.getTruster().getUniqueId())).collect(Collectors.toList()).get(0);
if (!FarmerManager.getFarmers().containsKey(claim.getID())) return;
UUID target = e.getTrusted().getUniqueId();
Farmer farmer = FarmerManager.getFarmers().get(claim.getID());
@@ -62,7 +63,7 @@ public void trustPlayer(TrustedPlayerEvent e){
*/
@EventHandler
public void unTrustPlayer(UnTrustedPlayerEvent e){
- Claim claim = RClaimAPI.getInstance().getClaims().stream().filter(c -> c.isOwner(e.getTruster().getUniqueId())).toList().get(0);
+ Claim claim = RClaimAPI.getInstance().getClaims().stream().filter(c -> c.isOwner(e.getTruster().getUniqueId())).collect(Collectors.toList()).get(0);
if (!FarmerManager.getFarmers().containsKey(claim.getID())) return;
Farmer farmer = FarmerManager.getFarmers().get(claim.getID());
Optional user = farmer.getUsersWithoutOwner().stream().filter(u -> u.getUuid().equals(e.getTrusted().getUniqueId())).findFirst();