So not like this
private int x, z;
private World world;
public SimpleChunk(int x, int z, World world) {
this.x = x;
this.z = z;
this.world = world;
}
public class Test {
static HashMap<SimpleChunk, Claim> claims = new HashMap<>();
static {
claims.put(new SimpleChunk(1, 1, Bukkit.getWorld("world")), new Claim(null, Bukkit.getWorld("world"), 1, 1));
}
@EventHandler
public void onMove(PlayerMoveEvent event) {
Chunk chunk = event.getPlayer().getLocation().getChunk();
Claim claim = claims.get(new SimpleChunk(chunk.getX(), chunk.getZ(), chunk.getWorld()));
}
}
}





